ok i figured where that error was coming from.
It was from the method: admin.autodiscover()
What does this method do?
Best Regards,
Stanwin Siow
On Feb 15, 2012, at 3:12 PM, Mike Dewhirst wrote:
> On 15/02/2012 5:41pm, Mike Dewhirst wrote:
>>>
>>> invalid syntax (admin.py, line 1)
>
> You
On 15/02/2012 7:48pm, Stanwin Siow wrote:
ok i figured where that error was coming from.
It was from the method: admin.autodiscover()
Well done!!! :)
What does this method do?
http://www.google.com.au/webhp?rlz=1C1GPEA_en___AU313&sourceid=chrome-instant&ix=sea&ie=UTF-8&ion=1#hl=en&rlz=1C1
On Wed, Feb 15, 2012 at 12:37 AM, Marc Aymerich wrote:
> On Tue, Feb 14, 2012 at 8:02 PM, Jeff Blaine wrote:
>> Hi all,
>>
>> I'm having trouble detecting changes that happen to a M2M field behind the
>> scenes: as a result of one of the *referenced objects being deleted*
>>
>> I'm using Django 1
Thanks bro! Just got the logic! Cheers. @Daniel keep up the good work,
even if you once hit me in the ass on StackOverflow! :)
On Feb 14, 3:47 pm, Tom Evans wrote:
> On Tue, Feb 14, 2012 at 2:45 PM, coded kid wrote:
> > Below the status. I'm not sure if I fixed this. How will I make it
> > displ
Hi all,
I have a .css file in the /static/ folder where I keep all my styles.
Now when I want to refer to images that I use in my CSS that are
stored in the /media/ folder, how do I reference that?
e.g. background-image:url('gradient2.png');
gradient2.png is stored in ~/media/ and my css is in
I implemented some simple Long Polling with Gevent in a Django View.
The client AJAX an url, enter the update view and wait with
Gevent.event.wait for an update.
Problem: We do not use Autocommit (and don't plan to) and the client
view's Postgres transaction stay open as long as Gevent.event.wait
hello,
On Wed, Feb 15, 2012 at 04:48:18PM +0800, Stanwin Siow wrote:
> ok i figured where that error was coming from.
>
> It was from the method: admin.autodiscover()
>
> What does this method do?
in Django doc:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/
"Above we used admin.aut
Hi,
In a class view, I am trying to modify two instances of different
models. There are some identical data stored in both tables. They
should really be the same in any circumstance .
Should I use "@commit_on_success"?
If I should, how should i use it for the class based view?
Should I do somet
On Feb 14, 8:56 pm, JC wrote:
> On IE8 however,
> my fiddler trace shows that random static assets (css, js, img) aren't
> loading most (2/3) of the time. The server trace doesn't seem to see
> or log the request at all.
Then it might be that for some reason IE8 just doesn't request the
assets
The commit_on_success decorator only garrentees that one commit is done
when no exception is raised from the function and rollback if there is any .
You have to ensure on your own hand the values in the two tables are equal.
2012/2/15 Yann
> Hi,
>
> In a class view, I am trying to modify two ins
I did.
When admin.autodiscover() was uncommented out,
It gives the syntax error when my admin.py was only as such:
from r2.models import Keyword
from django.contrib import admin
admin.site.register(Keyword)
Best Regards,
Stanwin Siow
On Feb 15, 2012, at 5:20 PM, Ervin Hegedüs wrote:
> he
On Feb 14, 6:23 pm, JC wrote:
> Hey guys,
>
> Does Django 1.3.1 handle logging from multiple processes or I have to
> have some special consideration?
Not really a django-specific problem - the problem exists as soon as
you have concurrent write access on a same file. The solution is of
course to
Did you delete one key or update the key to different values that was
referenced by another table as foreign key.
2012/2/15 xina towner
> Hello, I get this error when I try to test my app. I'm using mysql. I
> think it's when django tries to delete the table. I've tried with all On
> delete optio
refer to https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/
2012/2/15 Thomas Rega
> Am 14.02.12 21:28, schrieb Nolhian:
>
> Hello everyone,
>>
>> In my template I put :
>>
>> {% load pygmentize %}
>>
>> But I got :
>> TemplateSyntaxError at /
>> 'pygmentize' is not a valid tag li
I think the problem is that the testing tool is trying to reset the
database and when it tries to truncate this table it can't. Well, I'm
pretty sure, but I don't know how to fix it. The table references itself.
On 15 February 2012 14:06, 赵帅 wrote:
>
> Did you delete one key or update the key to
>
> >> Known Facts:
> >>
> >> 1. Deleting any Topping object (for example, deleting id=1,
> >> name="Pepperoni") also removes it from foopizza.toppings. Good.
> >> 2. No m2m_changed signal is sent when 1 (above happens). BAD.
>
> ...
>
> Check this out ;)
> https://docs.djangoproject.com/en/d
Hey thats a cool list and I feel like I must answer on it :)
Am 01.02.2012 17:43, schrieb Masklinn:
On 2012-02-01, at 17:00 , Bastian Ballmann wrote:
And what exact feature makes PyCharm an IDE that emacs hasnt?
* Semantics navigation (not via tags, it knows to find a class when you want a
c
Hi Guys, Does anyone knows about any good django package for maps? or
for locating of areas, states, streets? Please kindly answer if you
do. Thanks.
BTW: I've tried using Django easy_maps but it's not working. If you've
used easy_maps before, kindly comment below. Just want to ask you a
few quest
Why this kind of stuff never ends?;(
The best IDE is simply the one you can work best with, YOURSELF!
On 15.02.2012 16:13, Vikas Ruhil wrote:
Vim is best IDE for Python/Django ! look here the link
http://learnhackstuff.blogspot.in/2012/02/vim-as-universal-idepart-1.html
On Wed, Feb 15, 2012 a
Hi all,
I work for a small company in Mumbai, India.
We need an internal social networking site for our employees.
If any of you would be interested in 'providing a working set of codes
strictly built from Django/Python to setup a social networking site', I
would be happy to collaborate with you.
@Sanders, nice answer :D, SOL
+adesst
-Original Message-
From: Thorsten Sanders
Sender: django-users@googlegroups.com
Date: Wed, 15 Feb 2012 17:32:29
To:
Reply-To: django-users@googlegroups.com
Subject: Re: what is the best IDE to use for Python / Django
Why this kind of stuff never e
Is this posting a zombie? It doesn't seem to ever die no matter what we do
to kill it! :-)
Furbee
On Wed, Feb 15, 2012 at 10:09 AM, wrote:
> **
> @Sanders, nice answer :D, SOL
> +adesst
> --
> *From: * Thorsten Sanders
> *Sender: * django-users@googlegroups.com
> *D
I'm using a form for my webpage that returns values with simillar key
values. Now for backend compatibility reasons I cannot change the key
variables.
This is the query dictionary returned from the HTML file.
"
whenever i use HttpResponse(request.POST['address1']) it prints out
'bay street' when
Hi,
I am new to Django and searched around for a good example/tutorial about
AJAX + Django but most of them were not considered as complete.
Can anyone suggest if there is a good (complete) example for learning AJAX
+ Django? Thanks in advance!
--
--
You received this message because you are su
On Wednesday, 15 February 2012 19:02:51 UTC, Hans wrote:
>
> I'm using a form for my webpage that returns values with simillar key
> values. Now for backend compatibility reasons I cannot change the key
> variables.
>
> This is the query dictionary returned from the HTML file.
> u'dsadasdadas'
You can learn AJAX and learn Django and then mix them together.
You can look at Dajaxice project http://www.dajaxproject.com/ it's a good start.
2012/2/15 H.T. Wei :
> Hi,
>
> I am new to Django and searched around for a good example/tutorial about
> AJAX + Django but most of them were not conside
can you email me the details? I'm a student in kolkata - I think I'm
interested.
On Wed, Feb 15, 2012 at 7:15 PM, shahzeb kohari wrote:
> Hi all,
>
> I work for a small company in Mumbai, India.
> We need an internal social networking site for our employees.
> If any of you would be interested
On 2/15/12 1:28 PM, Dennis Lee Bieber wrote:
On Wed, 15 Feb 2012 11:45:51 -0800, Furbee
wrote:
Is this posting a zombie? It doesn't seem to ever die no matter what we do
to kill it! :-)
More like a vampire -- we dispose of it, and then sometime later
someone pulls the stake out of the
Ha ha ha, that's funny!
On Wed, Feb 15, 2012 at 12:44 PM, James Pyrich wrote:
> On 2/15/12 1:28 PM, Dennis Lee Bieber wrote:
>
>> On Wed, 15 Feb 2012 11:45:51 -0800, Furbee
>> wrote:
>>
>> Is this posting a zombie? It doesn't seem to ever die no matter what we
>>> do
>>> to kill it! :-)
>>>
>>>
Thanks. But the more important question is how to use
commit_on_success with class based view?
On Feb 16, 1:52 am, 赵帅 wrote:
> The commit_on_success decorator only garrentees that one commit is done
> when no exception is raised from the function and rollback if there is any .
> You have to ens
Hello everyone
The first release candidate of FeinCMS v1.5 has just hit the streets,
late as always.
The release is available at the following places:
PyPI: http://pypi.python.org/pypi/FeinCMS
Github: https://github.com/feincms/feincms
Documentation:
http://readthedocs.org/docs/feincms-django-c
How about a little more detail posted here to the list? General parameters
of how the website is to function? Some specs? You might generate more
interest with more information.
Toodle-l...
creecode
--
You received this message because you are subscribed to the Google Groups
I forgot to specify where. The traceback is on a '''python manage.py
syncdb''', and happens immediately after the password is entered twice.
On Wed, Feb 15, 2012 at 3:39 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I'm getting an error:
>
> Traceback (most recent
On Feb 14, 1:31 am, sbrandt wrote:
> mod_wsgi doesn't support print, does it? Its usage should raise an
> exception.
Yes it does support 'print'. Read:
http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output.html
Graham
--
You received this message because you are subscribed t
You can use the @method_decorator decorator decorator.
https://docs.djangoproject.com/en/dev/topics/class-based-views/#decorating-class-based-views
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https:
P.S. The source is at http://JonathansCorner.com/project/pim.tgz.
On Wed, Feb 15, 2012 at 3:40 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I forgot to specify where. The traceback is on a '''python manage.py
> syncdb''', and happens immediately after the password
Did you try Alasdair's answer from the question you posed on StackOverflow (
http://stackoverflow.com/questions/9302434/when-i-try-a-syncdb-where-is-the-duplicate-user-id-error-coming-from
)?
Syncdb is trying to create a new superuser, but it fails when it creates
the related user profile because
but on which method of the class view?
the post method?
On Feb 16, 12:03 pm, Matt Schinckel wrote:
> You can use the @method_decorator decorator decorator.
>
> https://docs.djangoproject.com/en/dev/topics/class-based-views/#decor...
--
You received this message because you are subscribed to th
In the default settings.py file, the timezone is set to:
TIME_ZONE = 'America/Chicago'
Why? Wouldn't None (to match the server's time zone) be a more sane
default? Even setting it to UTC would be more reasonable than setting it
to any specific timezone, but surely going with the system defaul
Hello,
I'm having a strange issue and have already spent an hour trying to
figure it out.
I created a python app called mn. Then I setup all my models and
stuff to work under mn.hcp. Everything has been working fine until I
tried to use date time in a py file in the hcp directory.
I've imported
Hey guys
I am learning django and I have a question
I have a table in my database call SettingsUser so how can I load this table to
all views on my application?
I do not want past and copy to each function in my view and I don't know if I
can load just once before de view is call.
thanks. :D
-
On Wed, Feb 15, 2012 at 10:48 PM, Scott wrote:
> Hello,
> I'm having a strange issue and have already spent an hour trying to
> figure it out.
>
> I created a python app called mn. Then I setup all my models and
> stuff to work under mn.hcp. Everything has been working fine until I
> tried to us
Can you reply with the actual NameError Exception? Like: NameError: globalname
'datetime' is not defined, or whatever it is. From the module that is
throwing this error are you importing anything else that is importing an
overridden date method or datetime object?
You can also try this (instead of
Hot off the presses, it's the first Django 1.4 beta! Blog post with
more information is here:
https://www.djangoproject.com/weblog/2012/feb/15/14-beta-1/
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--
You received this message because you are subscribed to
I believe that people who created Django are from there. :)
On 16 February 2012 14:46, Roy Smith wrote:
> In the default settings.py file, the timezone is set to:
>
> TIME_ZONE = 'America/Chicago'
>
> Why? Wouldn't None (to match the server's time zone) be a more sane
> default? Even setting i
45 matches
Mail list logo