diff --git a/src/README.md b/src/README.md index 8e9e0c63..d9cfabd6 100644 --- a/src/README.md +++ b/src/README.md @@ -1,17 +1,44 @@ # Source -Will contain the backend and front end pieces +Will contain the backend and front end pieces ------------- # art-club-website -Art Club website at IIIT-H
-virtual env can be activated by
+Art Club website at IIIT-H
+ +I have kept all the project files in ./src directory
+project name: webpage
+app name : webapp
+ +to get started +```console +foo@bar:~/art-club-website/src$ make +``` +this installs requirements and takes you to virtual env +
+
+```console +foo@bar:~/art-club-website/src$ python3 ./mange.py runserver +``` +gets the server running on localhost ie. http://127.0.0.1:8000/
+
+#### Advanced: +For only activating virtual env: ```console -foo@bar:~/art-club-website/src$ source bin/activate +foo@bar:~/art-club-website/src$ make activate ``` -or you can simply install by running +for only installing required packages: ```console -foo@bar:~/art-club-website/src$ make +foo@bar:~/art-club-website/src$ make install +``` +for exiting virtual env: +`deactivate` +
+for changing the server's port +```console +foo@bar:~/art-club-website/src$ python3 ./mange.py runserver +``` +If you want to change the server’s IP, pass it along with the port +
(make sure to add it in ALLOWED_HOSTS in /art-club-website/src/webpage/settings.py) +```console +foo@bar:~/art-club-website/src$ python3 ./mange.py runserver : ``` -I have kept all the project files in ./src directory
-project name: webpage
-app name : webapp
diff --git a/src/makefile b/src/makefile index 3e30052d..773cb3b9 100644 --- a/src/makefile +++ b/src/makefile @@ -1,4 +1,7 @@ -all: a - -a: +all: pip3 install -r requirements.txt + source bin/activate +install: + pip3 install -r requirements.txt +env: + source bin/activate diff --git a/src/webapp/__pycache__/__init__.cpython-38.pyc b/src/webapp/__pycache__/__init__.cpython-38.pyc index 1d09fc59..20127f5d 100644 Binary files a/src/webapp/__pycache__/__init__.cpython-38.pyc and b/src/webapp/__pycache__/__init__.cpython-38.pyc differ diff --git a/src/webapp/__pycache__/admin.cpython-38.pyc b/src/webapp/__pycache__/admin.cpython-38.pyc index 5a8a53be..8a42690d 100644 Binary files a/src/webapp/__pycache__/admin.cpython-38.pyc and b/src/webapp/__pycache__/admin.cpython-38.pyc differ diff --git a/src/webapp/__pycache__/models.cpython-38.pyc b/src/webapp/__pycache__/models.cpython-38.pyc index dc254612..ef6f09e3 100644 Binary files a/src/webapp/__pycache__/models.cpython-38.pyc and b/src/webapp/__pycache__/models.cpython-38.pyc differ diff --git a/src/webapp/__pycache__/views.cpython-38.pyc b/src/webapp/__pycache__/views.cpython-38.pyc index 53fe056b..6cb2c9fe 100644 Binary files a/src/webapp/__pycache__/views.cpython-38.pyc and b/src/webapp/__pycache__/views.cpython-38.pyc differ diff --git a/src/webapp/migrations/__pycache__/__init__.cpython-38.pyc b/src/webapp/migrations/__pycache__/__init__.cpython-38.pyc index 9c323611..eb026608 100644 Binary files a/src/webapp/migrations/__pycache__/__init__.cpython-38.pyc and b/src/webapp/migrations/__pycache__/__init__.cpython-38.pyc differ diff --git a/src/webpage/__pycache__/__init__.cpython-38.pyc b/src/webpage/__pycache__/__init__.cpython-38.pyc index 65eb0d32..34b58d70 100644 Binary files a/src/webpage/__pycache__/__init__.cpython-38.pyc and b/src/webpage/__pycache__/__init__.cpython-38.pyc differ diff --git a/src/webpage/__pycache__/settings.cpython-38.pyc b/src/webpage/__pycache__/settings.cpython-38.pyc index 898786ce..d285b7fb 100644 Binary files a/src/webpage/__pycache__/settings.cpython-38.pyc and b/src/webpage/__pycache__/settings.cpython-38.pyc differ diff --git a/src/webpage/__pycache__/urls.cpython-38.pyc b/src/webpage/__pycache__/urls.cpython-38.pyc index 39fc8036..e641fb66 100644 Binary files a/src/webpage/__pycache__/urls.cpython-38.pyc and b/src/webpage/__pycache__/urls.cpython-38.pyc differ diff --git a/src/webpage/__pycache__/wsgi.cpython-38.pyc b/src/webpage/__pycache__/wsgi.cpython-38.pyc index e8364532..c794afa9 100644 Binary files a/src/webpage/__pycache__/wsgi.cpython-38.pyc and b/src/webpage/__pycache__/wsgi.cpython-38.pyc differ diff --git a/src/webpage/settings.py b/src/webpage/settings.py index 99d8c252..c7484a2b 100644 --- a/src/webpage/settings.py +++ b/src/webpage/settings.py @@ -25,7 +25,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['0.0.0.0'] # Application definition