Git Product home page Git Product logo

djangoproject's Introduction

djangoproject

Django powered responsive project used for my site:

http://brooklyndelta.com/

This is an attempt to create a very basic responsive blog site powered by Django and make it as easy as possible to get installed and running on a Mac.

Caveats

This project requires some knowledge of python virtualenv, Ruby Compass and command line usage.

The instructions that follow are far from complete but should get you up and running.

Local setup - sqlite3 & Mac OS X

!!!Not to be used on production environments!!!

####Dependencies

####Instructions

  1. Clone the repo:

    git clone https://github.com/weeksghost/djangoproject.git

    cd djangoproject

  2. Create and install the project dependencies in a virtualenv

    pip install -r requirements.txt

  3. This project uses compass to compile its css so you must also install Ruby Compass

  4. Generate project css:

    cd compass

    compass compile

  5. Map your settings (database):

    You can see results faster by symlinking the example settings:

    ln -s djangoproject/settings/example/settings.py djangoproject/settings/__init__.py

    Or you can create your own. I would suggest copying and renaming the example directory just remember to symlink your settings.py file in the djangoproject/settings directory.

  6. Sync the database:

    ./manage.py syncdb

    ./manage.py migrate

  7. Use pre-configured fabfile to run server:

    fab fresh0

    or

    ./manage.py runserver 127.0.0.1:8000

  8. (Optional)

    I've included some fixtures to preload data from my site to be used as examples:

    ./manage.py loaddata homepage/fixtures/homepage.json

    ./manage.py loaddata blog/fixtures/entries.json

  9. Visit the local site:

    http://localhost:8000/

  10. Visit the admin:

    http://localhost:8000/admin/


Production

If you would like to host a verison of the project there are instructions (originally authored by a colleague) on how to set up a Complete Single Server Django Stack I am currently running a fork of this project on an AWS instance.

djangoproject's People

Contributors

emarty-bw avatar weeksghost avatar

Watchers

James Cloos avatar  avatar

djangoproject's Issues

Create models for hard links and social media

To make this portion of the app more extendible. I would like add models so users can create socialmedia and other site urls without having to worry about hard coding these values.

Make contact form reusable and upgrade validation

I'm pretty sure the form uses email settings from universal_urls.py. I need to make sure that is still easily configurable. Also need to update the validation. Still using the default Django form validation.

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.