-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added fork instructions and started defining directory structure * Implemented basic stuff (#1) * move essentials into src * update missing parts * updated readme and makefile (#10) * updated readme and makefile * added .pyc files in gitignore * initialising django rest framework * predeciding whether to make react as another django app or as a stand alone SPA * frontend and baackend running
- Loading branch information
1 parent
d061c7a
commit 01b1e2f
Showing
7 changed files
with
103 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# created by virtualenv automatically | ||
* | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Source | ||
Will contain the backend and front end pieces | ||
Will contain the backend and front end pieces | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
venv: venv/bin/activate | ||
|
||
install1: requirements.txt | ||
( \ | ||
source path/to/virtualenv/bin/activate; \ | ||
pip3 install -r requirements.txt; \ | ||
) | ||
|
||
install: requirements.txt | ||
#test -d venv || virtualenv venv | ||
. ./venv/bin/activate; pip3 install -Ur requirements.txt | ||
touch venv/bin/activate | ||
|
||
test: venv | ||
. venv/bin/activate; nosetests ./ | ||
|
||
clean: | ||
rm -rf venv | ||
find -iname "*.pyc" -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
import os | ||
import sys | ||
|
||
|
||
def main(): | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_react.settings') | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError as exc: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) from exc | ||
execute_from_command_line(sys.argv) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
asgiref==3.2.10 | ||
coverage==5.1 | ||
Django==3.0.7 | ||
djangorestframework==3.11.0 | ||
pkg-resources==0.0.0 | ||
pytz==2020.1 | ||
sqlparse==0.3.1 |