DjangoStart ์ƒˆ ๋ฆด๋ฆฌ์Šค 1.0.4 ๐ŸŽŠ

2730 ๋‹จ์–ด djangopythohwebdev
์ด ์Šคํฌ๋ฆฝํŠธ๋Š” ์ƒˆ Django ํ”„๋กœ์ ํŠธ๋ฅผ ์‹œ์ž‘ํ•˜๋Š” ์‹œ๊ฐ„์„ ์ ˆ์•ฝํ•ด ์ค๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์ฒซ ๋ฒˆ์งธ ์•ฑ์„ ์ƒ์„ฑํ•œ ๋‹ค์Œ ํ”„๋กœ์ ํŠธ ์„ค์ • ํŒŒ์ผ์„ ์—…๋ฐ์ดํŠธํ•˜๊ณ  ํ”„๋กœ์ ํŠธ URL ํŒŒ์ผ๋„ ์—…๋ฐ์ดํŠธํ•œ ๋‹ค์Œ ๋ณด๊ธฐ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ URL ํŒŒ์ผ์„ ๊ตฌ์„ฑํ•˜๊ณ  index.html๋„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

TL;DR



์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ


  • -v, --virtualenv ๊ธฐ๋ณธ ์ด๋ฆ„์œผ๋กœ ๊ฐ€์ƒ ํ™˜๊ฒฝ ์ƒ์„ฑ์šฉenv
  • -n, --name virtualenv์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž ์ •์˜ ์ด๋ฆ„์„ ์„ค์ •ํ•˜๋ ค๋ฉด-v -n my_new_name

  • ๋ณ€๊ฒฝ ๋กœ๊ทธ


  • ๋„์›€๋ง ์˜ต์…˜ ์ถ”๊ฐ€๋จ
  • ๋ฒ„๊ทธ ์ˆ˜์ •
  • ๋ฆฌํŒฉํ„ฐ๋ง ์ฝ”๋“œ
  • ๋ฒ„์ „ ํ™•์ธ ๊ธฐ๋Šฅ ์ œ๊ฑฐ
  • ํ”„๋กœ์ ํŠธ์— ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผ ํ•จdjango-start <project_name> <app_name> .
  • ์ด์ œ django-start๋ฅผ ์„ค์น˜ํ•˜๋ ค๋ฉด pip install django-start-automate๋ฅผ ์ž…๋ ฅํ•˜์‹ญ์‹œ์˜ค.

  • ์„ค์น˜




    pip install django-start-automate
    



    django-start --help
    
    usage: django-start [-h] [-v] [-n ] project_name app_name path
    
    django-start 1.0.4 (Beta) automate start project and create app
    
    positional arguments:
      project_name      Write a project name
      app_name          Write an app name
      path              select path
    
    options:
      -h, --help        show this help message and exit
      -v, --virtualenv  Create virtualenv
      -n [], --name []  Set virtualenv name
    
    


    ์„ฑ๊ณต์ ์ธ ์„ค์น˜ ๐ŸŽŠ

    virtualenv๋กœ ์ฒซ ๋ฒˆ์งธ ํ”„๋กœ์ ํŠธ ์‹œ์ž‘




    django-start frist_project first_app -v -n my_virtualenv .
    



    You can run command without create virrualenv



    django-start frist_project first_app .
    



    pypi project
    django-start repo

    ์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ