Archive
Posts Tagged ‘urls.py’
[django] init_app.py: complete the initialization of an app.
August 4, 2014
Leave a comment
I wrote a simple script called init_app.py that completes the initialization of a Django application.
You create a new app. like this:
./manage.py startapp APP_NAME
However, the generated app. is far from complete. Put init_app.py next to manage.py (in the same folder) and execute the following command:
./init_app.py APP_NAME
Currently, it performs the following actions:
- inside the app., create the folder
static/APP_NAME - inside the app., create the folder
templates/APP_NAME - inside the app., create a sample
urls.pyfile
Links
