parent
015e0e19af
commit
b89533e6ed
@ -1,27 +0,0 @@
|
|||||||
# skeleton-django
|
|
||||||
|
|
||||||
Skeleton of a backend Django App.
|
|
||||||
|
|
||||||
## Organization
|
|
||||||
|
|
||||||
```shell
|
|
||||||
apps/
|
|
||||||
app_one/
|
|
||||||
apputils/
|
|
||||||
migrations/
|
|
||||||
models/
|
|
||||||
serializers/
|
|
||||||
tests/
|
|
||||||
views/
|
|
||||||
urls.py
|
|
||||||
project_name/
|
|
||||||
settings/
|
|
||||||
default.py
|
|
||||||
development.py
|
|
||||||
production.py
|
|
||||||
staging.py
|
|
||||||
utils/
|
|
||||||
```
|
|
||||||
|
|
||||||
- Each package is located inside the apps package.
|
|
||||||
- Each model, serializer, view is defined in a separate .py file.
|
|
@ -1,5 +1,5 @@
|
|||||||
CREATE SCHEMA `skeletondjango` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
CREATE SCHEMA `personalpage` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||||
CREATE SCHEMA `test_skeletondjango` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
CREATE SCHEMA `test_personalpage` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||||
CREATE USER 'nicolas'@'%' IDENTIFIED BY 'qwerty';
|
CREATE USER 'nicolas'@'%' IDENTIFIED BY 'qwerty';
|
||||||
GRANT ALL PRIVILEGES ON skeletondjango.* TO 'nicolas'@'%';
|
GRANT ALL PRIVILEGES ON personalpage.* TO 'nicolas'@'%';
|
||||||
GRANT ALL PRIVILEGES ON test_skeletondjango.* TO 'nicolas'@'%';
|
GRANT ALL PRIVILEGES ON test_personalpage.* TO 'nicolas'@'%';
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
from personalpage.settings.default import *
|
||||||
|
|
||||||
|
DEBUG = True
|
||||||
|
TEMPLATE_DEBUG = True
|
@ -1,4 +1,4 @@
|
|||||||
"""skeletondjango URL Configuration
|
"""personalpage URL Configuration
|
||||||
|
|
||||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||||
https://docs.djangoproject.com/en/3.1/topics/http/urls/
|
https://docs.djangoproject.com/en/3.1/topics/http/urls/
|
@ -1,4 +0,0 @@
|
|||||||
from skeletondjango.settings.default import *
|
|
||||||
|
|
||||||
DEBUG = True
|
|
||||||
TEMPLATE_DEBUG = True
|
|
Loading…
Reference in new issue