Compare commits
2 commits
6da4073ced
...
827508a480
Author | SHA1 | Date | |
---|---|---|---|
827508a480 | |||
b614d8fb39 |
12 changed files with 31 additions and 0 deletions
7
README.md
Normal file
7
README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Mixr API
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
### Install requirements
|
||||||
|
|
||||||
|
If there are any issues with `psycopg2` and that it cannot be imported, you might be missing `libpq-dev`. If you are using a virtual environment, install it with `sudo apt-get install libpq-dev`
|
6
api_v1/admin.py
Normal file
6
api_v1/admin.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
from .user.models import *
|
||||||
|
|
||||||
|
admin.site.register(UserInformation)
|
||||||
|
|
||||||
|
# Register your models here.
|
6
api_v1/apps.py
Normal file
6
api_v1/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class ApiV1Config(AppConfig):
|
||||||
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
|
name = 'api_v1'
|
0
api_v1/migrations/__init__.py
Normal file
0
api_v1/migrations/__init__.py
Normal file
4
api_v1/models.py
Normal file
4
api_v1/models.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
from django.db import models
|
||||||
|
from .user.models import *
|
||||||
|
|
||||||
|
# Create your models here.
|
3
api_v1/tests.py
Normal file
3
api_v1/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
1
api_v1/user/models/__init__.py
Normal file
1
api_v1/user/models/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from .user_information import UserInformation
|
0
api_v1/user/models/user_services.py
Normal file
0
api_v1/user/models/user_services.py
Normal file
3
api_v1/views.py
Normal file
3
api_v1/views.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
|
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
'api_v1.apps.ApiV1Config',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|
Loading…
Reference in a new issue