-
Create new project (Only once for new project) 1.1 Go to github to create a new project, then click setup on desktop 1.2 Go to project dir, then 'virtualenv venv', to create venv dir 1.3 'source venv/bin/activate' to set up env 1.4 'pip install django' 1.5 Create README.md, LICENSE.md, .gitignore (ignore venv dir) under project dir 1.6 Commit and sync
-
Create project 2.1 'django-admin startproject mysite' to create project dir under git project dir 2.2 Go into project dir, then, 'python manage.py migrate', to create db for system apps 2.3 'python manage.py runserver', to start server 2.4 'python manage.py createsuperuser', to create admin user 2.5 Go to browser and point it to 'localhost:8000/admin/' 2.6 Commit and sync
-
Create application and models 3.1 'python manage.py startapp myapp' to create application 3.2 Edit models.py under application dir and add some model classes 3.3 Edit settings.py under project dir to register new application 3.4 Edit admin.py under application dir and register new models 3.5 Login to '/admin' to see CRUD interface for models
-
Create views 4.1 Edit views.py to add new functions to handle request 4.2 Edit urls.py to map url to view fuctions 4.3 Complete view function with render of templates .html files 4.4 Create templates/myapp/*.html template files 4.5 Point browser to test view
-
Create tests 5.1
birdcatcher/catalog
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published