Yeah no worries, I will gather as much evidence as I can and post the
details tonight. FYI I am running python 2.5.2 which comes with debian
lenny, I did not compile it myself.
And yes you are right that the wsgi server plays such a small part in
the processing of a django page. The majority of my
Hi,
sample/
static/
js/jquery.1.6.1.min.js
css/
settings.py
APP_DIR = os.path.abspath(os.path.dirname(__file__))
STATIC_ROOT = os.path.join(APP_DIR, 'static/')
STATIC_URL = '/static/'
INSTALLED_APPS = (
'django.contrib.auth',
'djan
*could you dump your urls.py ?
*
On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu wrote:
> Hi,
>
> sample/
> static/
>js/jquery.1.6.1.min.js
> css/
>
> settings.py
>
> APP_DIR = os.path.abspath(os.path.dirname(__file__))
> STATIC_ROOT = os.path
Thanks!
Celery provides a queue you could use:
>
> http://ask.github.com/celery/getting-started/introduction.html
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscri
urls.py
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('',
(r'^$', 'hydra.views.index'),
)
On May 30, 12:28 pm, Praveen Krishna R
wrote:
> *could you dump your urls.py ?
> *
>
>
>
>
>
>
>
>
>
> On Mon, May 30, 2011 at 12:19 PM, Alagu Madhu wro
Hello everybody,
I'd like to use an AJAX request without any form to change the
language of my site.
My problem is that I haven't found a way to avoid the csrf_token
error..
How can I generate the token without any form?
The other way it to use setlang with a GET request but, according to
docs, th
Hi Kirill,
Thanks for your response and sorry for my tardiness in replying!
I think you are right - my queryset is cached in the view, as my
urls.py looks like this:
from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to
from django.views.generic.list_detail
Indeed, I have just updated this to use class-based generic-views and
it appears to be working as designed:
from django.conf.urls.defaults import *
from django.views.generic import ListView, RedirectView
from application.news.models import Article, Category
urlpatterns = patterns('',
(r'^$'
Again, thanks to everyone who took the time out of their schedules to
jot down a quick reply to my question. I'll go away and try some of
the apps suggested. :D
If anyone from the Django Project itself is listening then can I (very
humbly) suggest that some editor recommendations would make a real
hi,
but you have to reload the whole page anyway or you want only part of
the page to be translated?
There's a way to change language without form.
R.
On 30. Máj, 13:07 h., Luca Casagrande
wrote:
> Hello everybody,
> I'd like to use an AJAX request without any form to change the
> language of m
On Monday, May 30, 2011, BobX wrote:
> If anyone from the Django Project itself is listening then can I (very
> humbly) suggest that some editor recommendations would make a real
> fine addition to the info on the site (useful to n00b's like me
> anyway).
That's a good idea - thanks!
Where do yo
Dear all,
I tried using python to execute some external java program in my code.
My problem is the os.system(cmd) was not working properly when the
code was included into some view in views.py. However, executing the
code from terminal worked just fine. I am not sure what is wrong here.
this
Hi Radovan,
this code should go on a web page before the real application.
Basically I'd like to have the user click on a flag representing the
language and load the real site with the appropriate language.
Thanks
L.
On 30 Mag, 15:30, urukay wrote:
> hi,
>
> but you have to reload the whole page
Hi there,
I have several installed applications within my Hue environment. I'd like
to use the multiple database support to route all database requests
associated with apptwo.models into a database called "apptwo", while keeping
everything else in the default database. Is this possible? It seem
On Mon, May 30, 2011 at 08:03:46AM -0700, Luca Casagrande wrote:
> Thank you very much, for your help and your code.
> The problem is that the POST request is missing the csrf_token and so
> I have got a 403 Error.
https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/#ajax
--
Kirill Spitsin
-
On Mon, May 30, 2011 at 10:00 AM, Philip Zeyliger wrote:
> I have several installed applications within my Hue environment. I'd like
> to use the multiple database support to route all database requests
> associated with apptwo.models into a database called "apptwo", while keeping
> everything el
> Because I am writing CRM, and my end users are non-technical ladies :}
> And each one of them inputs data in different format (id numbers, phone
> numbers, dates, names [upper cased, capitalized, lower cased])
> Therefore I have to normalize an input to store, and then print contract
> agreements
Is there a way to run Django (mod_wsgi) in threaded mode?
> I would push the atomic updates to the database or use a queue with a
> single worker. Thread level locking doesn't scale across processes or
> servers.
>
>
--
You received this message because you are subscribed to the Google Groups
How do I get the user related to the current request in templatetag?
Using RequestContext?
@register.tag(name='sometag')
def sometag(parser, token):
try:
tagname, model_inst = token.split_contents()
except ValueError:
raise template.TemplateSyntaxError, "%r tag requires exa
It's more of a hack than a clean solution but it works. Add the
following to your settings file:
import logging
logging.getLogger('django.db.backends').setLevel(logging.ERROR)
On May 24, 12:32 am, diafygi wrote:
> Howdy all,
>
> I have DEBUG=True in my settings.py, and I have several log
On Monday, 30 May 2011 18:07:16 UTC+1, MrMuffin wrote:
>
> How do I get the user related to the current request in templatetag?
> Using RequestContext?
>
> @register.tag(name='sometag')
> def sometag(parser, token):
> try:
> tagname, model_inst = token.split_contents()
> except Va
All,
I would like to know how to do this?
For example, in my views I have to visit 10,000 websites (make url
connection). Each of those connections are independent connections.
I would like to hit them as quickly as possible. Then return an
http-response with some results.
I have few questions
Hi,
I'm a DJango newb and need to make sure I approach initial issues
correctly:
I have a couple of models: Items, and subItems which have a ForeignKey
to Items.
I have a detail page for Items that displays all its subItems.
I want to add a form to allow addition of up to 3 extra subItems on
A little while ago, I was approached about building a basic web site
for a small store. The requirements were pretty typical and read like
a menu of web development tutorials. This was to be a data driven
site that any decent web developer could build. I, however, am not a
web developer, decent
Robin
Don't worry - your mother is probably right.
Here are my "rules" ...
1. Dive into Python 3 rocks
2. Read "Practical Django Projects"(*) or if you decide against that get
yourself a small-ish concrete target and avoid extraneous functionality
like the plague. Then when it is working loo
If I can give my $0.02, the content can live anywhere, but how about at
least a link to the content within the initial "setting up django
environment' section?
This way those who are just beginning programming and Django can know what
do they need to do and what are the pros and cons of an editor/
Hi, I'm new and I'm trying to make an app that have a field, pointing
to a record of the same object class. How can a make django has a
search form and show the record of the class on a popup window like
http://demoweb.cibernatural.com/admin/gestion/presupuesto/add/ (user
and password demo:demo) bu
On 30/05/2011 11:41pm, Jacob Kaplan-Moss wrote:
On Monday, May 30, 2011, BobX wrote:
If anyone from the Django Project itself is listening then can I (very
humbly) suggest that some editor recommendations would make a real
fine addition to the info on the site (useful to n00b's like me
anyway).
I want to display a list of records that have some editable fields and
some readonly fields, as well as asynchronously add new records to the
list. I thought the way to start would be with an InlineFormSet - but
I can't figure out how to populate my formset with initial data. E.g.
MyInlineFormset
If I set:
DEBUG = False
in my settings.py file, my site runs and produces the correct HTML,
but there's no style sheets loaded. Even stranger, if I save the HTML
generated each way into files and compare them, they're identical!
Any clue what might be causing the style sheets not to load with D
On Mon, May 30, 2011 at 9:56 PM, Roy Smith wrote:
>
> Any clue what might be causing the style sheets not to load with DEBUG
> = False?
>
>
https://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/#static-file-development-view
Karen
--
http://tracey.org/kmt/
--
You received this message
Hi,
Did you notice you are missing closing quote ' in the search fields???
Regards,
Anoop
On 31 May 2011 04:54, "podio" wrote:
> Hi, I'm new and I'm trying to make an app that have a field, pointing
> to a record of the same object class. How can a make django has a
> search form and show the rec
It seems as though the default in Django when creating tables is to
place a constraint that doesn't allow null values (contrary to what
I've learned is the default for SQL in general). I have a model which
has a date attribute, and which I now want to be able to hold null
values, but when I tried
Is SEND_BROKEN_LINK_EMAILS = True working for you guys?
I am using Django 1.2.5. I have view function that raise Http404 when object
is not found but I am not receiving the email
despite SEND_BROKEN_LINK_EMAILS = True in my settings.py. I do receive email
for HTTP500 though.
--
http://www.dazzle
On Sat, May 28, 2011 at 10:50 PM, Cameron wrote:
> So I have this stack trace on my production server. I can't reproduce
> it locally and it doesn't occur with an older version of the same site
> deployed on the same server.
>
> Traceback (most recent call last):
> File "./dependencies/django/cor
*Pasting one of my earlier replies to the same question*
***
*
*Please check django official docs to find out how static files are served
on production and development server.
in the dev server include a similiar snippet into your projects
urls.py, urlpatterns:
(r'^site_media/(?P.*)$', 'django.vi
Using the web-server to make such a request to open 10,000 odd URLs seems
unrealistic approach. Rather make a separate process to do the same.
Thanks,
Subhranath Chunder.
On Mon, May 30, 2011 at 11:29 PM, rahul jain wrote:
> All,
>
> I would like to know how to do this?
>
> For example, in my vi
37 matches
Mail list logo