It seems to me you that with 'if created:' are testing for something
that is either already happened, or you already have an exception.
'created' is taking the place of the request object. And the request
object not necessarily contains valid POST data, but will exist, so
the test will pass
As of the latest version (1.4), this is impossible. What's the rationale behind
it? Why isn't it fixed by now? If I make a fix, will it be accepted by the
official team?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion
Hi,
I've just upgraded to Django 1.4, and I was getting a
'builtin_function_or_method' object has no attribute 'split' error
being thrown. I traced this down to an erroneous use of distinct, I
had:
X.objects.distinct(id)
Which had previously worked, but was now throwing. I've removed the
'id'
On Sun, Mar 25, 2012 at 9:30 AM, Aryeh Leib Taurog wrote:
>
> On Mar 23, 3:56 pm, Javier Guerra Giraldez wrote:
> > On Fri, Mar 23, 2012 at 4:37 AM, Aryeh Leib Taurog
> > wrote:
> >
> > > My understanding is that one usually
> > >
i upgraded to 0.8 and start doing things your way and it seems to work
fine. i just have one question, is this code OK or yours is better? if yes
why is that?
def create_user_profile(sender, instance, created, **kwargs):
if created:
I just started receiving the same error "Bus error: 10". I made a
small code change and
it suddenly appeared. I've reverted but that doesn't seem to matter.
Very odd behavior.
I'll continue debugging. My settings:
Python 2.7.1
OS:X Lion 10.7.3
Django 1.4.0
James Leard
On Apr 20, 7:58 am, Tom
ok i was copy pasting from example on the internet.. where do i check if it
exists or not?
On Saturday, April 21, 2012 11:14:12 PM UTC+1, akaariai wrote:
>
> On Apr 21, 11:30 pm, psychok7 wrote:
> > hi there , so i am not sure if i am doing this the right way, but
> > im
On Apr 21, 11:30 pm, psychok7 wrote:
> hi there , so i am not sure if i am doing this the right way, but
> im successfully able to upload files(images) and store them in my defined
> folder and the link in my mysql database.
> the error comes when i try to return the image
On Apr 21, 8:35 pm, Arruda wrote:
> Should I create this many-to-many table as a normal model(no proxy) and set
> the foo foreingkey to Foo1 instead of Foo?
> Or should I use only FooBar as many-to-many and create some specific
> queries that would convert ALL the
You could take a look on how its's done with Apache/mod_wsgi and cook
your uWSGI meal from that:
https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/
HTH
On Apr 21, 5:46 am, k4ml wrote:
> On Apr 21, 8:59 am, Gerald Klein wrote:
>
> > I
No problem. You would need to upgrade to 0.8 to make this work.
Enjoy!
On Apr 21, 11:46 pm, psychok7 wrote:
> yes 0.7 , well ill give it a try then :) if i run into problems i will
> bother you a little bit further
>
>
>
>
>
>
>
> On Saturday, April 21, 2012 10:33:32 PM UTC+1,
yes 0.7 , well ill give it a try then :) if i run into problems i will
bother you a little bit further
On Saturday, April 21, 2012 10:33:32 PM UTC+1, Ejah wrote:
>
> Hi,
> What version of django-registration are you using? I assume 0.7
> The usage of profile_callback has been removed in 0.8, a
Sounds like the API should return a UUID that can then be used to poll,
while celery or similar does the heavy lifting in the background?
On 21 April 2012 21:53, jpk wrote:
> Hi django-users,
>
> I've come looking for some advice. I've built a json api using django,
>
Hi,
What version of django-registration are you using? I assume 0.7
The usage of profile_callback has been removed in 0.8, a very recent
release actually, looking at the codebase history.
The finer documentation on the usage of 0.8 is made available at:
Hi django-users,
I've come looking for some advice. I've built a json api using django, and
POST/PUT to one of my endpoints does some non-trivial processing. The
gritty details are included at the end, but for the purposes of this
discussion, the important things are probably 1) The action is
Jani, excellent idea :) The Django Book is a gem(blehh, an egg) that we
can curate. I'm not a very good writer, but I'm sure there are some good
writers in the community. Should we start a separate thread for this?
On Sun, Apr 22, 2012 at 2:02 AM, Reinout van Rees wrote:
>
On 12-04-12 09:44, Timothy Makobu wrote:
The Django book is the best source of understanding Django I have found
http://www.djangobook.com/en/2.0/
However, it's three years old now. Is the info on it still valid?
Is there a plan to update it?
Well, I'm writing a book on Django for the
I am running a website on local host (my mac, ip 127.0.0.1) and my
django dev server on a VM (some other ip eg. 192.168.56.1).
I load up the local host website, which 'emulates' the mobile app that
I will build using phonegap. I am issuing ajax requests from the
website to the django application
You counted it wrong. Add one more zero ;-)
On Sat, Apr 21, 2012 at 11:48 PM, Shawn Milochik wrote:
> There are eleventy bajillion discussions on this already.
>
> Please search the group history on Google Groups.
>
>
> --
> You received this message because you are
There are eleventy bajillion discussions on this already.
Please search the group history on Google Groups.
--
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 unsubscribe from
Hi everyone,
I was wondering which IDE you guys are recommending to use?
Important is ease of use and productivity. Price comes third if its
not free.
I tried already Aptana 3.0, but I get a weird error message upon
creating Django projects:
I know already that are some limitations when using Many-to-Many and proxy
models, I just want to know what is the best practices when doing something
in this case:
obs: the Choices is from model_utils (Django model utils)
I have this first class:
class Foo(models.Model):
> "The single
thanks guys, i also did some tests without changing the registration source
by doing get_profile() and it seems to work fine so i guess the less i
touch it the better
On Saturday, April 21, 2012 4:41:21 PM UTC+1, Brandy wrote:
>
> It looks correct. Is everything showing up now?
>
>
> On
It looks correct. Is everything showing up now?
On Saturday, April 21, 2012 9:38:51 AM UTC-5, psychok7 wrote:
> its seemed to work, thanks
> from django.contrib import admin
>
> from registration.models import RegistrationProfile , UserProfile
>
>
> class RegistrationAdmin(admin.ModelAdmin):
Hi,
I wanna add tagging in my web.
So far, i found django-tagging[1] and django-taggit[2].
From quick look, and by reading this blog post[3], i think i will choose
django-taggit.
Before using django-taggit, is there any other alternatives?
Thanks
[1]http://code.google.com/p/django-tagging/
Ejah i did that because in registration source code there are some values
in Profile_callback set to NONE.. should i leave it like that?? the
comments say i should change it and equal it to my user profile. is that it
or i am doing it the wrong way?
On Saturday, April 21, 2012 3:29:40 PM
its seemed to work, thanks
from django.contrib import admin
from registration.models import RegistrationProfile , UserProfile
class RegistrationAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'activation_key_expired')
search_fields = ('user__username', 'user__first_name')
If I am not mistaken you are editting the Registration source files.
There is no need to do that.
Simply add a new App. Create your user profile class in its models.py
file, name it whatever you like. Add registration and your App to the
installed_apps in your settings file. Edit the settings file
Have you created an admin.py file? It should look something like this:
from poll.models import Poll
from django.contrib import admin
admin.site.register(Poll)
On Saturday, April 21, 2012 12:28:05 AM UTC-5, psychok7 wrote:
> hi there, i am quite new to django and i am having a little
Have you made an admin.py file? It should look something like this:
from polls.models import Poll
from django.contrib import admin
admin.site.register(Poll)
On Saturday, April 21, 2012 12:28:05 AM UTC-5, psychok7 wrote:
> hi there, i am quite new to django and i am having a little trouble
hi there, i am quite new to django and i am having a little trouble
extending my User with Userprofile. i have read lots of documentation about
it and i have implemented as an extension of
https://bitbucket.org/ubernostrum/django-registration a version but i am
not sure it works the way its
31 matches
Mail list logo