Code Monkey home page Code Monkey logo

django-startproject's People

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

django-startproject's Issues

DJANGO_SETTINGS_MODULE not being imported

I've followed the project install instructions (i.e. create a new virtualenv, install requirements and the environment, copy example settings to local), but still getting the standard error:

Error: Could not import settings 'example.conf.local.settings' (Is it on sys.path? Does it have syntax errors?): No module named conf.settings

The problem seems to come from importing the common settings module - if you remove this and put all settings within that file then everything works.

manage.py recursive error

I'm getting a recursive error with SmileyChris's fork when I try and run manage.py

When I look at the PROJ/PROJ/bin/manage.py itself it looks like this:

!/opt/webapps/PROJ/bin/python

EASY-INSTALL-DEV-SCRIPT: 'PROJ==0.1','manage.py'

requires = 'PROJ==0.1'
from pkg_resources import require; require('tms==0.1')
del require
file = '/opt/webapps/PROJ/src/PROJ/PROJ/bin/manage.py'
execfile(file)

So far the only way I've been able to get it to work is by replacing that with a stock manage.py.

But I'm also wondering if bin/manage.py should go away in lieu of django-admin.py since it's installed in a Virtualenv's bin folder by pip?

no --no-site-packages?

If we really want to create a clean environment, we should be using virtualenv myproject --no-site-packages

This means that you have to build PIL for the env, which is a bit of a pain but it does mean you have a consistent environment.

The same goes for xapian as I found -- you could use your distro's default, but it means you're not locking down to a specific version of xapian.

python-setuptools requirement?

Looking at readme, is python-setuptools really a direct requirement? Guess it is, but probably more likely this should be virtualenv as a requirement (which in turn, probably has setuptools as a depends)

django-startproject allows bad module names to be created

I ran

django-startproject.py premium-support

and filled out the information as follows:

Project name [PROJECT]: premium-support
Project author [Lincoln Loop]: Michael
Development server [dev.lincolnloop.com]: [redacted]
Repository location [cambridge.lincolnloop.com]: [redacted]

After that, I ran

pip install -r requirements.pip

and then

pip install -e .

This went okay.

Finally, I ran

manage.py syncdb

and it bombed out with invalid syntax:

http://dpaste.de/tzy8Y/

Chris asked me to file an issue for this:

[9/29/11 4:30:05 PM] Chris: can't use dashes for your module name
[9/29/11 4:30:12 PM] Chris: it should probably protect against you trying to
[9/29/11 4:30:39 PM] Chris: add an issue in github for that

So....here it is.

Project template and defaults not installed

I installed via:

pip install django-startproject

When running django-startproject.py myproj it fails silently w/o creating a project directory because the project_template directory isn't present within the installed package.

No module named staticfiles.context_processors

I believe the statement:

TEMPLATE_CONTEXT_PROCESSORS += (
    'staticfiles.context_processors.static_url',
)

is obsolete as django (at least 1.3 does) automatically includes django.core.context_processors.static.

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.