Giter Club home page Giter Club logo

django-dudel's Introduction

This is an example for an easy Django application. You can use this to find dates for meetings, parties or similar.

Installation

You can host this application with or without a virtualenv. To create one type

virtualenv venv
source venv/bin/activate

while you are in the directory where your files should live. On a production server this is probably somewhere under /var/www on a developers machine this is normally somewhere in your $HOME.

Now you can clone the sourcecode of the application into your directory

git clone [email protected]:pinae/django-dudel.git

After that you should have a subdirectory dudel/ and if you created a virtualenv also a subdirectory venv/. The actual application is in the dudel/ directory. So go there: cd dudel/.

Now you have the application itself but you need to initialize your database. You can canfigure dudel/settings.py to use mySQL or PostGreSQL described here. Or you can leave the file as it is to use sqlite.

Initialize your database with

./manage.py migrate

Start a development Server

If you are testing the application or if you are a developer you can start the application now with

./manage.py runserver

The application can be accessed under the url http://localhost:8000.

Deployment on a production server

As this application is directed at developers as an example of how to work with Django some development options are activated by default. On a production server you should change these settings as they might expose information about your server to possible attackers.

Edit dudel/settings.py and change DEBUG to False and TEMPLATE_DEBUG to False. In settings.py is also a link to the Django documentation with tips for what to do on production servers.

There is wsgi file (dudel/wsgi.py) which you can use with a wsgi-server like uwsgi. As this is dependant on which webserver you use please refer to the documentation of your wsgi and webserver of your choice. We successfully tested this with uwsgi and nginx.

django-dudel's People

Contributors

pinae avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.