Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrelkj/django
https://github.com/andrelkj/django
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrelkj/django
- Owner: andrelkj
- Created: 2024-06-05T21:27:06.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T00:19:27.000Z (5 months ago)
- Last Synced: 2024-06-10T01:29:31.564Z (5 months ago)
- Language: Python
- Size: 13.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django
## Commands
- `django-admin startproject ` - create the project with all configuration files required to initialize
- `python3 manage.py runserver` - initialize the server
- `python manage.py startapp ` - create a new app with its configuration files installed**Note:** `djago-admin` is called to create a project, but after that the project itself is executed by calling the `manage.py` file instead.
## Files
- [manage.py](manage.py) - store and execute overall configurations
- [init.py](init.py) - store initial configurations
- [wsgi.py](wsgi.py) - web service responsible for taking the project to prodution
- [asgi.py](asgi.py) - web service responsible for taking the project to prodution
- [urls.py](urls.py) - define applications paths and routes
- [settings.py](settings.py) - stores all project main configurations
- [models.py](models.py) - allow working with data models
- [views.py](views.py) - include processing code, controlling the pages behavior**Note:** Once the project server starts running a `db.sqlite3` file is generate to initialize the database.