Forgive a django newbie...
Maybe I'm the laziest person in the world, but sometimes I get tired
of typing "models.WhatEver" for every single model I have to write. Is
there anyway a shortcut could be added that would 'assume' the
'models.' prefix when I am defining a model?
e.g. instead of:
clas
Thanks a lot.
That's decided
On Sun, Nov 14, 2010 at 5:08 AM, Robbington wrote:
> its an ImportError which means that it couldn't find your main urls.py
> or possibly a sub urls that you are including.
>
> Out of interest, this isnt the usual mysite.polls app kind of problem,
> how did you encout
Here's my stack trace
[13/Nov/2010 16:01:55] "GET /accounts/login/ HTTP/1.1" 200 6544
Exception happened during processing of request from ('127.0.0.1',
2223)
Traceback (most recent call last):
File "C:\Python27\lib\SocketServer.py", line 284, in
_handle_
On Nov 13, 10:24 pm, Jon Snidal wrote:
> Hello,
>
> First post to the group, and sorry it's on this common subject! I
> have tried to read every post on this and cannot seem to get it. I'm
> using Django 1.2.3, and therefore believe the instructions here apply:
>
> http://docs.djangoproject.com/
As m1chael said it's a very common subject and it's already answered several
times on this list. Simple do a searh and you'll find your answer.
2010/11/13 m1chael
> Hi..
>
> This is a common subject!
>
> Your best bet is to just configure apache or lighthttpd to serve your
> static files...
>
>
Perfect, that's exactly what I was looking for. Thanks.
On Nov 13, 8:49 am, Jason Mayfield wrote:
> On Nov 12, 2010, at 11:41 PM, dgmyrs wrote:
>
> > So in summary, I am looking for advice on how this sort of issue
> > should be approached in Django.
>
> I don't know about "should", but I often
Hi..
This is a common subject!
Your best bet is to just configure apache or lighthttpd to serve your
static files...
~mike
On Sat, Nov 13, 2010 at 5:24 PM, Jon Snidal wrote:
> Hello,
>
> First post to the group, and sorry it's on this common subject! I
> have tried to read every post on this
Hello,
First post to the group, and sorry it's on this common subject! I
have tried to read every post on this and cannot seem to get it. I'm
using Django 1.2.3, and therefore believe the instructions here apply:
http://docs.djangoproject.com/en/1.2/howto/static-files/
My project is in folder
its an ImportError which means that it couldn't find your main urls.py
or possibly a sub urls that you are including.
Out of interest, this isnt the usual mysite.polls app kind of problem,
how did you encouter this error?
If you could post the entire error message that you are seeing
including th
I have a very simple form with one search field. This is the current
workflow:
If POST:
form(request.post)
If form is valid:
Clean form
Use clean data to HttpResponseRedirect to a "pretty url" e.g. if
junction restaurant, forward to /junction-restaurant
else
form
render_to_r
i can't fix that error actually i don't understand this error.
my urls.py :
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', 'public.views.index'),
(r'^
answering my own questions here:
By the looks of things I will stick with hudson for now, I found some
information on coverage tools as well (all though there seems to be no
sonar plugin, prob because nobody has been bothered to use maven for
django yet)
I also found a project called Fabric for de
Another solution is to use context processors (they're in the docs).
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+
Hi All
What do you guys use for CI servers? Also where can I get some
detailed info on application propagation strategies (from dev, to qa,
to uat to prod) for django
As a side note, I think the getting started documentation should be
updated to reflect the use of relative paths
http://rob.cogit8
A first version has been committed to Bitbucket:
http://bitbucket.org/bolhoed/django_disqus_comments/
Showing your Disqus comments from your templates works, saving them
still needs to be done. Also, getting the comments from code does not
work yet, which breaks (for example) django-blog-zinnia's
On Nov 12, 2010, at 11:41 PM, dgmyrs wrote:
> So in summary, I am looking for advice on how this sort of issue
> should be approached in Django.
I don't know about "should", but I often accomplish this via inclusion template
tags. Inclusion tags are described in the docs here:
http://docs.dja
Ok,
Thanks, I was just seeing if it was a more basic error.
Unfortunately with out seeing more of your code/ error message it is
hard to diagnose the problem. I have to go out now for a few hours,
but if you post the full error message someone/or myself when I get
back maybe able to help you.
It
Hi,
I am just getting started in Django, and am running into a question
about the best Django way to go about setting up sidebar type blocks.
For my site I would like to have a few sidebar items that are
dynamically driven from the database. I am confused as to how this
fits into the views and te
Hi,
Django has en and en-gb installed as languages in it's core. If a
django project wishes to use other locales such as 'en-au' or any of
the others listed in the subject line, how would one go about this
given that a language cannot be used unless it is in the core?
Essentially, how does one go
oops Sorry
it's my real urls.py file
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', include('public.urls')),
(r'^admin/doc/', include('django.contrib
Bit confused,
You said
"But i already installed djangodocs on my INSTALLED_APPS (
'django.contrib.admindocs', "
and in my urls.py
(r'^admin/doc/', include('django.contrib.admindocs.urls')), "
But in your urls.py admin docs is clearly commented out.
#(r'^admin/doc/', include('django
Yes
#coding:utf8
import os
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS
Hi Lindsay,
I would be happy to sort out your problem for a small fee.
Rob
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
djang
Hi Tsolmon,
Can you post your full urls.py file for me?
Rob
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubs
On Sat, Nov 13, 2010 at 00:08, Steve Holden wrote:
> When you add a Persona the UserInline lets you enter a User record, but
> the User has to be saved before the Persona. You could do this by
> extending the Persona.save() method to save the User as well.
Thanks a lot. I'll try.
--
K.
Blog Per
Dear comrades
i'm using Django 1.1 with Postgres.
I got a following error
ImportError: No module named urls
212223
{% block branding %}{% endblock %}2425{%
if user.is_authenticated and user.is_staff %}2627{% trans 'Welcome,' %}28
{% first
26 matches
Mail list logo