Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrelkj/django


https://github.com/andrelkj/django

Last synced: 5 days ago
JSON representation

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.