Thanks for the useful replies!
On Wednesday, March 27, 2013 6:32:06 PM UTC+3, +Emmanuel wrote:
>
> Hello there,
>
> I am working through the django tutorial at djangoproject.com. So far
> everything works out fine until Section 2.4.6 (customizing the admin form).
> Django throws an error: *'mod
Thanks Karen! That fixed the problem :-)
On Wednesday, March 27, 2013 6:48:18 PM UTC+3, Karen Tracey wrote:
>
> On Wed, Mar 27, 2013 at 11:32 AM, +Emmanuel
> > wrote:
>
>> Hello there,
>>
>> I am working through the django tutorial at djangoproject.com. So far
>> everything works out fine until
Here's a link to a setup I found useful and have been using since then:
http://www.jeffknupp.com/blog/2012/10/24/starting-a-django-14-project-the-right-way/
On Saturday, March 30, 2013 10:56:37 AM UTC+3, Martin wrote:
>
> Hi list,
>
> I'm a Django newbie and have been reading of usefulness of usi
Hi,
I got the same issue. And I solved it doing this:
urlpatterns= patterns('',
(r'^login/$', 'django.contrib.auth.views.login'), <-Remove the
last comma in the patterns()
)
Hope this helps
On Friday, May 18, 2012 5:58:28 AM UTC+8, refreegrata wrote:
>
> Hello list
>
> I know, this
On Sunday, 31 March 2013 22:42:12 UTC+1, AJP wrote:
> I'm new to learning Django. I want to find the documentation regarding
> the readonly attribute you can set for admin widgets. For example, from an
> admin.py:
>
> class SourceForm(forms.ModelForm):
> data = forms.CharField(widget=TextInp
Al 01/04/13 21:11, En/na sachin ha escrit:
Hello,
I'm just starting with Django. I want to create a user registration form
which will take input like username, password, first and last name,
email, address etc.
using the same information I want to send a conformation mail to user
and authenticat
Don't even worry about factories. They're for when you want a bunch of
forms for the same model on the page at once.
Use the UserCreationForm in django.contrib.auth.forms. It only accepts
a username and password, so you can either subclass it to add the
fields or make your own form and add it to y
Hello,
I'm just starting with Django. I want to create a user registration form
which will take input like username, password, first and last name, email,
address etc.
using the same information I want to send a conformation mail to user and
authenticate her/him.
I have read Django docs, from
Stick a print statement between lines 91 and 92 to show you
model_module.__name__ .
(or use pdb if you're comfortable with it). My best guess is that the
split() is returning a
list of one item. That is, that there is no '.' in model_module.__name__
. Thus an index
of -2 failss: there is no penu
I just tried this and still have the same error. I also might add that I'm
using a mac with an updated os. I also hear that it could be an issue of
line breaks, but can't find any /n's or /r's in any of the code anyway. I
might just be looking in the wrong places, too.
On Sunday, March 31, 201
it is very simple and doesn't require a separate http server like nginx
first you configure in settings.py the variables STATIC_ROOT and
STATIC_URL, then configure http server accordingly
STATIC_ROOT is the absolute path in filesystem that stores your static
files, you can put that inside djang
i read about template inheritance and think it is great
but there is the possibility of including one template output as context
variable for another template
for example :
*
c = new RequestContest()
c['navigation'] = render_to_string('navigation.html', {'links': links})
output = render_to_respon
So far I don't have this issue at all with 1.4, which makes sense as it
started exactly at the 1.5 upgrade time for me.
On Monday, April 1, 2013 7:40:08 AM UTC-6, budl...@gmail.com wrote:
>
> So I have some stats reports that I run that it almost seems as if each
> thread has its own queryset c
These differences between debug and production mode are also a bit
confusing. The site I am writing is *not* supposed to be very scalable; it
is a very simple web application for internal use at my job that we aren't
expecting to have more than a few users. It would only take me a few hours
to
I am trying to make a simple quiz app.
I am trying to go to the URL /quiz/ and using the quiz_id which
has a list of questions associated with the quiz id and create a list of
forms to use in the model form.
In the urls.py file I know you can pass a list of forms to be used, but I
need to crea
So I have some stats reports that I run that it almost seems as if each
thread has its own queryset cached. Each time I refresh they change. I'm
going to revert back to 1.4 due to this bug. I wish I could come up with a
simple example, to demonstrate this, the problem is that the underlying
On Mon, Apr 1, 2013 at 12:48 PM, Siddharth Ghumre
wrote:
> Hi
>
> As per my view your client query is returning more than one rows from your
> database.
> Suppose your job = 1 which you are getting from your Report table and the
> query ( Job.objects.all().filter(
> client=job)..)fetches two o
Ok i got it new version problem
I ran commond this..
find . -type f -print0 | xargs -0 sed -i 's/ url \([^" >][^ >]*\)/ url "\1"/g'
It'll go through all of your template files and replace this:
{% url index.html %}
with this
{% url "index.html" %}
Thanks to all
On Mon, Apr 1, 201
hi,
I was using django 1.4 version in window 7. now i am using django 1.5
version using virtualenv in ubuntu. now i am running my old project it's
generating error.
error is -
NoReverseMatch at /
'url' requires a non-empty first argument. The syntax changed in Django 1.5,
see the docs.
Hi
As per my view your client query is returning more than one rows from your
database.
Suppose your job = 1 which you are getting from your Report table and the
query ( Job.objects.all().filter(
client=job)..)fetches two or more than two records from your 'job'
table.
Now there can be two sc
20 matches
Mail list logo