Hi,
why not to implement this check in the beginning of your view and if it's
required just redirect the url to the same view with correct details which will
just pass initial check?
--
wbr,
rush
05.09.13, 08:51, "KentH" ":
>
> Hi,
>
> I've got an app where I'd like to
Hi,
I've got an app where I'd like to partially process some URLs, and then
afterwards have django resume & dispatch.
Consider the following example: url pattern matches
http://www.example.com/location/dept/some/other/info.
In this example, the location can move (eg: dept relocated). And the
Im trying to migrate my django model:
from django.contrib.auth.models import User
class Post(models.Model):
headline = models.CharField(max_length=200)
slug = models.SlugField(max_length=200)
body = models.TextField(blank=True, null=True)
author = models.ForeignKey(User,
I am trying to deploy my Django site. On my development environment using
runserver, everything works perfectly. After deploying to production with
Apache and Passenger WSGI on a shared hosting environment, the majority of
the site works correctly. However, I am having one issue that I am
I borrowed the dictfetchall(cursor) code directly from Djangoproject.com
and it works with my code.
But what kind of sorcery is this? How can I output the contents of *desc*?
I want to see what that data looks like.
*desc* = cursor.description
Because I can't follow what's going on here.
The MEDIA_ROOT is the local system location where the FileField in your
models is going to store incoming files. Users submit files and they are
placed in the location specified by the 'upload_to' setting of the field
(usually a directory within MEDIA_ROOT).
Your MEDIA_ROOT setting is also suspect.
As-is you will be writing user submitted files into your shared
site-packages folder. Hopefully you won't be running Django as root and
you'll get a permission error.
K
--
You received this message because you are subscribed to the Google Groups
Thanks for the link I will study it.
But I still would like some help with printing and visualizing that "desc"
data just to make sure it's not Voodoo. :)
I don't really know how to print that out, MVC is confusing me. Can you
give me a hint which file I need to input my "print desc" LOC?
On 2013-09-04, at 21:55 , Pepsodent Cola wrote:
> I borrowed the dictfetchall(cursor) code directly from Djangoproject.com
> and it works with my code.
> But what kind of sorcery is this? How can I output the contents of *desc*?
> I want to see what that data looks like.
>
>*desc* =
I have a site, where users can upload images. And it works fine in django's
own server. But I am using apache to serve both my app and statics. And
when I upload any image, I can't see the pics. Only when I runcollectstatic I
can see them. Do I always have to run collectstatic? Is there any better
On Wed, Sep 4, 2013 at 2:36 PM, Javier Guerra Giraldez
wrote:
> above that, Redis is a clean, fast and very scalable platform for
> queues. if you don't have heavy buzzword dependency, i wouldn't
> bother checking AMQP systems and stay with Redis.
>
A thousand times this.
On Wed, Sep 4, 2013 at 11:28 PM, Mantas Zilinskis
wrote:
> your problem is in TEMPLATE_CONTEXT_PROCESSORS = (
> 'django.contrib.messages.context_processors.messages'
> 'django.contrib.auth.context_processors.auth'
> )
> it's a tuple, you have to have a comma after
On Wed, Sep 4, 2013 at 11:23 PM, Mantas Zilinskis
wrote:
> and also all your traceback
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
140. response = response.render()
File
your problem is in TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.messages.context_processors.messages'
'django.contrib.auth.context_processors.auth'
)
it's a tuple, you have to have a comma after messages proccesor
On Wed, Sep 4, 2013 at 12:53 PM, Mantas Zilinskis
and also all your traceback
On Wed, Sep 4, 2013 at 12:45 PM, Satinderpal Singh <
satinder.goray...@gmail.com> wrote:
> On Wed, Sep 4, 2013 at 11:11 PM, Mantas Zilinskis
> wrote:
> > can you post your settings.py
>
> Here it is:
>
> # Django settings for nanaksar
On Wed, Sep 4, 2013 at 11:11 PM, Mantas Zilinskis
wrote:
> can you post your settings.py
Here it is:
# Django settings for nanaksar project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)
MANAGERS = ADMINS
DATABASES
can you post your settings.py
On Wed, Sep 4, 2013 at 12:26 PM, Satinderpal Singh <
satinder.goray...@gmail.com> wrote:
> I face this error after configuring admin.py file in my project:
>
> ValueError at /
>
> Empty module name
>
> Request Method:GET
> Request URL:http://localhost/nanaksar/
>
On Wed, Sep 4, 2013 at 12:28 PM, wrote:
> What were people using back in PHP days, cron all the way?
MQs have existed for a long time; but weren't so popular. I think the
Twitter problems were the wake-up call for most people.
in part because ghetto queues do work, and
On 3 september 2013 15:25:42 UTC+2 Russell Keith-Magee wrote:
>
>
> On Tue, Sep 3, 2013 at 9:50 PM, wrote:
>
>> In my Django application I need to schedule some tasks to run in future.
>> Celery is not an option here because some crucial options - mainly, the
>> ability to
I face this error after configuring admin.py file in my project:
ValueError at /
Empty module name
Request Method:GET
Request URL:http://localhost/nanaksar/
Django Version:1.5.2
Exception Type:ValueError
Exception Value:
Empty module name
Exception
I have now separated the form definitions into forms.py and import the
models from models.py... so this is fixed
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
I would remove the first url and see if it is still taking me to demoproj.
On Tuesday, 3 September 2013 14:18:49 UTC+1, bab mis wrote:
>
> I have 2 app inside my django project:
>
> url(r'^demoproj/$', include('demoproj.urls')),
>
> url(r'^sample/$', include('sample.urls')),
>
>
>
you shouldn't use "$" in the include patterns
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this
did you try XX84/sample*/* (trailing "/")?
You might also get more answers if you show the content of "demoproj.urls"
and "sample.urls"
Am Dienstag, 3. September 2013 15:18:49 UTC+2 schrieb bab mis:
>
> I have 2 app inside my django project:
>
> url(r'^demoproj/$',
Hi,
given the following models and model form I get the error in the subject,
apparently because the related model "roomsetup" is defined *after* the
"RoomsForm" form and is not loaded at the time the form is created.
class rooms(models.Model):
[ lots of other fields]
*room_setup*
This is usually a side effect of not doing a redirect from the view
that handles your submitted form.
Sent from my Windows Phone
From: Harjot Mann
Sent: 9/4/2013 5:31 AM
To: django-users@googlegroups.com
Subject: duplicate entry in django
In my app whenever the page is refreshed, the double entry
26 matches
Mail list logo