Code Monkey home page Code Monkey logo

generic-django-project's Introduction

generic-django-project

Generic project directory structure for new django applications.

For more info, read my blog post:

https://medium.com/cs-math/f29f6080c131

Installation on Heroku

If you want to use Heroku to host your Django application, checkout this project

https://github.com/josephmisiti/generic-django-project-heroku

Just follow directions and you should have a django app running on Heroku in a few steps!

Installation

First, get cookiecutter

$ pip install cookiecutter

Then execute the following command:

$ cookiecutter https://github.com/josephmisiti/generic-django-project.git

Setting Up The Database

I like to use postgres, so I suggest installing PostGreApp. Once that is installed, execute the following commands

$ createdb <DBNAME>

Then sync and execute migrations

$ python manage.py syncdb
$ python manage.py migrate

Done! If you are not using OSX, you're on your own. It's pretty easy to install Postgres on UBUNTU (see fabfile.py), but I have no experience on Windows.

If you have any questions or what to help out, send a pull request or reach out at @josephmisiti

generic-django-project's People

Contributors

josephmisiti avatar josephmmisiti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generic-django-project's Issues

Updating the project

I plan on updating the project to accommodate Django 1.6 soon (this week). Just in case anyone is interested. The updates will include

*postgres by default
*django-tastypie integration for RESTful interfaces
*redis-sessions
*jammit for asset management

Updates Required

  • support django 1.9
  • support latest version of django rest / celery
  • support stripped down custom user model
  • remove tastypie from requirements
  • upgrade postgres versions

Error Importing Settings

When I try to start the application, I get this error:

Traceback (most recent call last):
    File "manage.py", line 11, in <module>
        import settings
    File "/home/eli/Code/remesh/settings.py", line 127, in <module>
        from local_settings import *
ImportError: No module named local_settings

I guess my question is this: how do we set up environment specific settings? Your blog post didn't really get into that aspect.

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.