Giter Site home page Giter Site logo

django-genesis's Introduction

{{ project_name|title }}

{% if False %} Use the following command to create a new django project based on this template:

$ django-admin.py startproject --template=https://github.com/byteweaver/django-genesis/archive/master.zip --extension=nginx,service,py,md,html,sh --name=Makefile <project_name>

{% endif %}

Requirements

  • make
  • python-virtualenv

Setup for development

Setup virtualenv and install requirements:

$ make

Apply migrations and create database:

$ ./bin/python manage.py migrate

Run development server (private localhost):

$ ./bin/python manage.py runserver

Or run development server (public to local network):

$ ./bin/python manage.py runserver 0.0.0.0:8000

django-genesis's People

Contributors

akuryou avatar noxan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-genesis's Issues

Think about serving media files in development mode

Do we want to serve media files during debug mode?

+from django.conf import settings
+from django.conf.urls.static import static

+urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

How to allow template overriding?

Currently it is not possible to override templates of external apps, leave it as a special case or add one of those two solutions.

Add global template directories definition:

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, '{{ project_name }}/common/templates'),
)

Or move common app before external apps:

# Application definition
 INTERNAL_APPS = (
-    '{{ project_name }}.common',
 )
@@ -47,6 +46,7 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    '{{ project_name }}.common',  # load common app before external apps to allow overriding of templates
 ) + EXTERNAL_APPS + INTERNAL_APPS

Rename project

find a unique name and resolve all those name conflicts (e.g. readthedocs, pypi and more to come)

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.