Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated readme and makefile #10

Merged
merged 2 commits into from
May 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 36 additions & 9 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -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 <br/>
virtual env can be activated by <br/>
Art Club website at IIIT-H <br/>

I have kept all the project files in ./src directory <br/>
project name: webpage <br/>
app name : webapp <br/>

to get started
```console
foo@bar:~/art-club-website/src$ make
```
this installs requirements and takes you to virtual env
<br>
<br>
```console
foo@bar:~/art-club-website/src$ python3 ./mange.py runserver
```
gets the server running on localhost ie. http://127.0.0.1:8000/<br>
<br>
#### 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`
<br>
for changing the server's port
```console
foo@bar:~/art-club-website/src$ python3 ./mange.py runserver <port number>
```
If you want to change the server’s IP, pass it along with the port
<br> (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 <ip addrs>:<port number>
```
I have kept all the project files in ./src directory <br/>
project name: webpage <br/>
app name : webapp <br/>
9 changes: 6 additions & 3 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -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
Binary file modified src/webapp/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified src/webapp/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file modified src/webapp/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file modified src/webapp/__pycache__/views.cpython-38.pyc
Binary file not shown.
Binary file modified src/webapp/migrations/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified src/webpage/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified src/webpage/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified src/webpage/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified src/webpage/__pycache__/wsgi.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/webpage/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down