Skip to content

nvw1/exe_orientation_Q

Repository files navigation

exe_orientation_Q

Exeter Orientation - A campus treasure hunt.

This service is provided as a django web application.

How to run code base in production

Currently when every time someone commits to the master branch the application gets redeployed: You can find the web app at: https://exeterorientation.azurewebsites.net/

Native Application Development

Running Django applications has been simplified with a manage.py file to avoid dealing with configuring environment variables to run your app. From your project root, you can download the project dependencies with:

How to run the code base locally:

pipenv install

To install all the libraries required to run the application locally:

pip install -r requirements.txt

To run your application locally:

pipenv shell
python manage.py runserver --settings=deploy_django_to_azure.settings.local

Your application will be running at http://localhost:8000.

Debugging locally

To debug a django project run python manage.py runserver with DEBUG set to True in local.py to start a native django development server. This comes with the Django's stack-trace debugger, which will present runtime failure stack-traces. For more information, see Django's documentation.

Configuration of Django connection to SQL database.

In the path: exe_orientation_Q/deploy_django_to_azure/settings you can find a file called base.py there is a standard database configuration where the variable DATABASES can be edited to connect to a specific sql database.

To be able to connect to the database on your location machine, you will need to install an Microsoft® ODBC Driver 17 for SQL Server. You can download the driver from on windows https://www.microsoft.com/en-us/download/details.aspx?id=56567.

About

Exeter Orientation - A campus treasure hunt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •