Did you try changing your settings.py file from DEBUG=True to DEBUG=False?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/_xGLm2OIgFIJ.
To post to this gro
This guide worked perfectly for me when setting up my dev environment on
Mountain Lion. (Virtualenv, Virtualwrapper, Homebrew, Xcode, Postgres, Python,
Django, etc.)
https://gist.github.com/1852087
--
You received this message because you are subscribed to the Google Groups
"Django users" gr
Have you looked at easy-thumbnails? It depends on PIL or Pillow and works great
for cropping amount other image manipulations.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d
When I go to 127.0.0.1:8000/admin/ I receive this error:
Caught ViewDoesNotExist while rendering: Tried base in module
django.views.generic. Error was: 'django.views.generic.base' is not a
callable.
I followed the django tutorial here:
https://docs.djangoproject.com/en/dev/intro/tutorial01/
and
Hi all,
I am attempting to follow this tutorial:
http://scottbarnham.com/blog/2008/08/21/extending-the-django-user-model-with-inheritance/
But I am receiving this error:
AttributeError at /login/
'NoneType' object has no attribute 'DoesNotExist'
Here is my stack trace:
http://dpaste.com/565795/
Thanks for the responses.
How do I use a foreign key, though? In other words, how do I tell my
code to look at UserProfile rather than just user?
On Jul 10, 5:08 am, Jonas Geiregat wrote:
> Op 10-jul-2011, om 12:37 heeft Venkatraman S het volgende geschreven:
>
>
>
> > This is not good design. I
ng from scratch?)
Thanks.
On Jul 11, 9:54 am, Michał Sawicz wrote:
> Dnia 2011-07-11, pon o godzinie 09:48 -0700, Brent pisze:
>
> > How do I use a foreign key, though? In other words, how do I tell my
> > code to look at UserProfile rather than just user?
>
> https://do
n
> turn makes create_user_profile get called every time the sender model (User)
> is saved (hence the 'post_save').
>
> More on this athttps://docs.djangoproject.com/en/dev/ref/signals/
>
> Cheers,
> André Terra
>
>
>
>
>
>
>
> On Mon, Jul 11,
Is this done in urls.py?
On Jul 11, 10:55 am, Andre Terra wrote:
> Pass user.get_profile() as a template variable instead by adding it to the
> template context.
>
> Cheers,
> André
>
>
>
>
>
>
>
> On Mon, Jul 11, 2011 at 2:50 PM, Brent wrote:
> >
s.djangoproject.com/en/dev/ref/templates/api/#subclassing-...
>
> Cheers
>
>
>
>
>
>
>
> On Mon, Jul 11, 2011 at 3:12 PM, Brent wrote:
> > Is this done in urls.py?
>
> > On Jul 11, 10:55 am, Andre Terra wrote:
> > > Pass user.get_profile() as a
Sorry, I meant I was hoping to avoid diving into defining my own views
until later.
On Jul 11, 1:08 pm, Brent wrote:
> So I need to create a custom view? (I can't use an existing view)? I
> was hoping to avoid diving into templates until later, after I've
> become a little mor
ext processors, and defining
> one is as easy as:
>
> http://stackoverflow.com/questions/3722174/django-template-inheritanc...
>
> You can try step #3 once you feel confident enough to write views (they are
> very simple!)
>
> Cheers,
> André Terra (airstrike)
>
>
>
Hi,
Does anyone know of a simple, working example of custom user profile
fields?
I want to have a custom field, say, "favorite color," which is unique
to each user. Then I want users to be able to login, and be taken to a
page called "profile" that displays that custom field.
So far, I have logg
Thanks for the help guys.
Micky, that tutorial looks very good. I think I almost have it
working. Just one more error:
http://dpaste.com/567361/
Andre, thanks for mentioning Pinax. I'll give it a shot if this
doesn't work out. I have a year of python experience, but I haven't
written anything we
Running syncdb again didn't seem to fix it. I tried deleting the
database entirely, and starting from a new database, but that also
didn't work.
On Jul 12, 2:28 pm, Shawn Milochik wrote:
> On Tue, Jul 12, 2011 at 5:26 PM, Brent wrote:
> > Thanks for the help guys.
>
&g
ciated with
> them?
>
> Cheers,
> Andre
>
> On 7/12/11, Brent wrote:
>
>
>
>
>
>
>
>
>
> > Thanks for the help guys.
>
> > Micky, that tutorial looks very good. I think I almost have it
> > working. Just one more error:
>
> >
model, check AUTH_PROFILE_MODULE in your
> project settings
>
> http://www.google.com/search?&q=django+Unable+to+load+the+profile+mod...
>
> check out the first result.
>
> Cheers,
> André
>
> On Tue, Jul 12, 2011 at 8:09 PM, Brent wrote:
> > Good id
I'm using python manage.py runserver, and I have restarted it dozens
of times.
On Jul 12, 8:58 pm, Micky Hulse wrote:
> On Tue, Jul 12, 2011 at 7:57 PM, Brent wrote:
> > Unfortunately, no matter what kind of path I put for
> > AUTH_PROFILE_MODULE, the same error appears.
&
I'm having the same issue. Will post if I discover the solution.
On Dec 14 2010, 12:09 pm, Nick wrote:
> I have three models. Two are inlines of another model in the Admin. I
> have their extra parameters set to 0 so:
>
> class model1(admin.StackedInline):
> model = Model1
> extra = 0
>
Hi there. I'm not looking for a fully definite answer here
necessarily, but I am searching for input on the best way to attack
this problem. Here it is, somewhat abstracted so that you don't have
to wrap your head around my problem domain:
Let's say I've got two models -
ModelOne(models.Model)
f you read this list, thanks Gul.
On Dec 21, 11:30 pm, Brent Hagany wrote:
> Hi there. I'm not looking for a fully definite answer here
> necessarily, but I am searching for input on the best way to attack
> this problem. Here it is, somewhat abstracted so that you don't have
know. I doubt that there is a
completely satisfactory solution (to me), but I'd like some opinions
on what sucks less.
Thanks,
Brent
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
ls and umbrella.templates into INSTALLED_APPS,
too?
On Oct 8, 7:38 am, Carl Meyer <[EMAIL PROTECTED]> wrote:
> On Oct 7, 10:28 pm, Brent Hagany <[EMAIL PROTECTED]> wrote:
>
> > My apologies if this has been brought up before on this group - my
> > searching did not turn u
My reason for separating things like this is
that I may want to take one app out and plug in another that exposes
the same functionality to the other apps, but is different
internally. Besides that, I just find it easier to have chunks of
functionality separated in this way.
Brent
On Oct 8, 9:2
I'm having some trouble getting F() expressions to obey my parentheses
when I don't want the default order of operations. For example, given
the model:
class MyModel(models.Model):
wins = models.DecimalField(max_digits=1, decimal_places=0)
losses = models.DecimalField(max_digits=1, decim
concerned that the django code as a whole typically is not written to handle
these worst cases?
--
Salad dressings on us all,
Brent
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Good day Guys
I got this off news.python.sc, and thought I would share in case anyone
misses it.
https://lincolnloop.com/high-performance-django/index.html
Definitely some tidbits of information, esp to areas of securing and
performance improving.
HTH
Regards
Brent
--
You received this
onnection leak
issue occurs whether I'm using plain old 'manage.py runserver', or Gevent
monkeypatched runserver, or Gunicorn's gevent workers.
(Cross-posted
at
http://stackoverflow.com/questions/12853067/django-cleaning-up-redis-connection-after-client-disconnects-from-st
After a lot of banging on things and reading framework code, I've found
what I
think is the right answer to this question.
1. According to the WSGI PEP, if your application returns an iterator with a
close() method, it should be called by the WSGI server once the response has
finished. Django sup
html for
details
I can’t find any characters ‘/xe2’ anywhere in the settings.py file, line 70 or
other wise? I am editing the file in the Xcode IDE. The pep article really
doesn’t help me much. Any suggestions or ideas on what needs to be edited in
my settings.py file?
Brent.
--
You r
30 matches
Mail list logo