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

https://github.com/pytlicek/django-template

Custom Django project template
https://github.com/pytlicek/django-template

django python3

Last synced: 6 months ago
JSON representation

Custom Django project template

Awesome Lists containing this project

README

          

# Custom Django project template

### Install with poetry
- `python3.10 -m virtualenv .venv`
- `pip install -U poetry`
- `poetry install`
- `poetry shell`

### Configuration
- Migrations:
- `python manage.py makemigrations`
- `python manage.py migrate`
- Create/Edit .env file: `cp .env-example .env`
- Create user: `python manage.py createsuperuser`
- Change user's password: `python manage.py changepassword info@example.com`
- Rename `my_project` folder and `my_project` references to your project name

### Usage
- Run Django Server: `python manage.py runserver`
- Django Admin URL: [http://127.0.0.1:8000/admin/](http://127.0.0.1:8000/admin/)
- Login to Django Admin with User/Pass fe: `info@example.com`/`info@example.com`
- API URL: http://127.0.0.1:8000/api/docs#/
- Optionally add packages with: `poetry add django-environ`