... | @@ -25,6 +25,7 @@ The virtual environment is needed to be able to run the Django server. |
... | @@ -25,6 +25,7 @@ The virtual environment is needed to be able to run the Django server. |
|
* To run the server local use ```python3 manage.py runserver```. If you want to use it externally as well you need to use ```python3 manage.py runserver <IP-address>:<port>```;
|
|
* To run the server local use ```python3 manage.py runserver```. If you want to use it externally as well you need to use ```python3 manage.py runserver <IP-address>:<port>```;
|
|
|
|
|
|
### Configuration
|
|
### Configuration
|
|
|
|
#### Install moduless
|
|
For our website you need some modules, so first off all make sure you are still running the virtual environment, then do the following:
|
|
For our website you need some modules, so first off all make sure you are still running the virtual environment, then do the following:
|
|
* Download the `requirements.txt` which is needed for your server. To generate a `requirements.txt` in your project execute the following:
|
|
* Download the `requirements.txt` which is needed for your server. To generate a `requirements.txt` in your project execute the following:
|
|
```bash
|
|
```bash
|
... | @@ -32,6 +33,7 @@ pip3 freeze > requirements.txt |
... | @@ -32,6 +33,7 @@ pip3 freeze > requirements.txt |
|
```
|
|
```
|
|
* To install all the modules at once use ```sudo pip3 install -r requirements.txt```.
|
|
* To install all the modules at once use ```sudo pip3 install -r requirements.txt```.
|
|
|
|
|
|
|
|
#### Run Django on a domain name
|
|
If you want to run the server on a domain name do the following:
|
|
If you want to run the server on a domain name do the following:
|
|
* Go to the settings.py in the mysite folder and edit the following:
|
|
* Go to the settings.py in the mysite folder and edit the following:
|
|
```python
|
|
```python
|
... | | ... | |