Re: initial argument in forms not working for me

2013-02-01 Thread Tom Evans
On Mon, Jan 28, 2013 at 5:35 AM, Nikhil Verma wrote: > Hi > > I am using django 1.4.3 and have a field in form > > > PROFILE_TYPE = ( > ('public', 'Public'), > ('private', 'Private'), > ) > profile_type = forms.CharField(max_length=10, widget=RadioSelect >

select_related() - suddenly to result

2013-02-01 Thread Szabo, Patrick (LNG-VIE)
Hi, I have the following query: Buch = Buchung.objects.filter(Produkt = int(POSTvalues['Produkt'])) Later I'm using stuff like: Buch.Produkt.Bestell_Nr To speed things up i wan't to use select_related() on the query but no mather where I add it if I add it i get 0 entries as a result

Can't convert app to south due to django 1.5 custom User model.

2013-02-01 Thread Tejinder Singh
I have a custom app in my project named 'profiles' which contains a custom User model. Here is the declaration of the same: class CustomUser(AbstractUser): image = models.ImageField(_('Image Field'), upload_to='user_images') I have pointed this in my settings module, AUTH_USER_MODEL = 'prof

Can't perform data migrations using django 1.5 Custom user class

2013-02-01 Thread Tejinder Singh
I have many applications with historic south initial migrations, which i wanted to convert to django 1.5 applicable. So i swapped out all orm['auth.User'] relation with custom ones, but when i try to run those migrations i get following error: Error in migration: django_notify:0001_initial KeyE

Re: Polls tutorial receive object not object representation

2013-02-01 Thread Ramiro Morales
On Jan 27, 2013 10:58 PM, "Sayth Renshaw" wrote: > > Now the only thing is that when I call p.choice_set.all() I don't get the representation 'The sky' or 'Just Hacking again' . I receive choice object itself. Is this normal? That happens because you seem to hsve missed or decided to skip the ins

How is fatcow for django hosting?

2013-02-01 Thread frocco
Hello, Anyone use them? I am trying to compare them to Bluehost.com Thanks -- 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...@googlegroup

Re: Announcing new django project

2013-02-01 Thread Dmitrij Veselov
Awesome! пятница, 1 февраля 2013 г., 9:25:06 UTC+4 пользователь h3 написал: > > Hi everybody, > > I would like to introduce you my latest project: django-editlive > > It can make any database object editable in template with a simple > template tag. > > More informations, including demos and docs

MySQL, manage.py and nvarchar

2013-02-01 Thread Patrick Loney
Hello, I'm just starting with Django and am trying to create a db table with nvarchar fields as opposed to varchar. I'm using MySQL and creating objects of type models.CharField() within my classes. Any ideas? Cheers, Patrick -- You received this message because you are subscribed to the

Re: Announcing new django project

2013-02-01 Thread Joey Espinosa
Looks pretty cool, and maybe this is just my naivety at work, but how does form validation work with this? -- Joey "JoeLinux" Espinosa* * On Fri, Feb 1, 2013 at 12:25 AM, h3 wrote: > Hi everybo

Share an apartment in Warsaw for DjangCon Europe

2013-02-01 Thread Daniele Procida
I am hoping to go to DjangoCon in May, arriving 14th departing 19th or 20th after the sprints. Finances are tight - I am looking into apartments, which might be cheaper and more comfortable than a hotel. If anyone else is doing the same and would like to share, please drop me a line. Thanks,

Re: get_absolute_url with custom extra parameter

2013-02-01 Thread Sammael
Really interesting solution, I didn't think about using template filters, thank you. I think it's too complicated for this task, but I'll surely keep this in mind, this can be very useful. четверг, 31 января 2013 г., 15:29:54 UTC+4 пользователь ke1g написал: > > The template language does not al

Re: Announcing new django project

2013-02-01 Thread h3
> Looks pretty cool, and maybe this is just my naivety at work, but how does form validation work with this? It's actually pretty simple. A form is generated on the fly for each editlive field using modelform_factory: https://github.com/h3/django-editlive/blob/master/editlive/adaptors/base.py#L4

Re: get_absolute_url with custom extra parameter

2013-02-01 Thread Sammael
I did use {% url %} before, but now it's not suitable for me anymore. The problem is my url pattern is a little more complicated than above example, sorry, I didn't want to confuse your with irrelevant code. I'm trying to implement a kind of SEO-frendly urls using slugfield album.url like this:

Re: Polls tutorial receive object not object representation

2013-02-01 Thread Greg
> Now the only thing is that when I call p.choice_set.all() I don't get the representation 'The sky' or 'Just Hacking again' . I receive choice object itself. Is this normal? It should be said that yes, that is normal. p.choice_set.all() is a list of Choice objects, not a list of strings attrib

Re: Kindly help for an interview with Google on python django

2013-02-01 Thread Javier Guerra Giraldez
On Thu, Jan 31, 2013 at 1:23 PM, Larry Martell wrote: > This is something I found back in 07 when I was offered a chance to > interview there. I searched for it again, and there are links to it, > but they don't appear to work. My situation was the strangely similar > to Peter's - I also got an un

Re: Kindly help for an interview with Google on python django

2013-02-01 Thread Vijaya Reddy
Hi All, At present, I am working on Vitalization technologies(Citrix Products). Now i am changing my platform to Python and django. Because, my aim is to get a job Google. Am i moving towards wrong way? On Thursday, January 31, 2013 7:15:11 AM UTC-8, laxglx wrote: > > Hello Everybody, >

Re: inspectdb option and DJango normal operations

2013-02-01 Thread carlos
yes and not why syncdb create a other tables for example auth, content_type etc and inspectdb only tables databases old Cheers On Thu, Jan 31, 2013 at 12:03 PM, wrote: > If I use the inspectdb command to create models.py file from existing > database schema would it function the same way as if

Re: previous values of custom method in save

2013-02-01 Thread Sammael
I've also tried to use signals like this: *@receiver(post_save, sender=Album) def album_save_handler(sender, instance, **kwargs): json.dump( {'name': **instance**.name , 'tags': **instance**.tags_()} , open('/tmp/info.txt', 'wb'), sort_keys=True)* * * And even

Admin Site m2m Inline get_or_create

2013-02-01 Thread Pedro J. Aramburu
Dear Djangonauts, I'm in a bit of a pickle here and I would appreciate your help. I have a model which needs multiple dates. I thought on serializing them onto a TextField but it isn't pretty and a query-hell so instead settled for a m2m field. Now, on the django admin site I want to be able t

Automating deployments

2013-02-01 Thread Marc Aymerich
Hi, I'm thinking about the best way to provide automatic deployment for the Django project I'm working on. Its a pretty big one and has lots of dependencies, lots of SO packages, Celeryd and other daemons, SO tweaks... and also several people will need to have installed it on their servers (they ar

Re: Automating deployments

2013-02-01 Thread Brian Schott
We are using ansible. http://ansible.cc/ Other popular choices are puppet and chef. The real benefit. Is that these tools let you version control your configurations. Sent from my iPhone On Feb 1, 2013, at 7:46 PM, Carlos Aguilar wrote: Bash scripts really??? If you are a Python developer yo

Re: How is fatcow for django hosting?

2013-02-01 Thread frocco
I also am looking at hostgator On Friday, February 1, 2013 7:40:27 AM UTC-5, frocco wrote: > > Hello, > > Anyone use them? > I am trying to compare them to Bluehost.com > > Thanks > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Kindly help for an interview with Google on python django

2013-02-01 Thread Vijaya Reddy
Hi Dennis, It is Virtualization. Typo error. On Feb 1, 11:55 pm, Dennis Lee Bieber wrote: > On Fri, 1 Feb 2013 08:32:06 -0800 (PST), Vijaya Reddy > declaimed the following in > gmane.comp.python.django.user: > > > At present, I am working on Vitalization technologies(Citrix Products). > >      

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread KVR
forms.py class SampleWidget(forms.Form): date=forms.CharField(widget=AdminDateWidget,max_length=100) users = forms.ModelMultipleChoiceField(queryset=User.objects.all(),widget=FilteredSelectMultiple(("Users"), False)) mytemple.html {% block content %} window.__admin_media_prefix__ = "/sta

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread Victor Rocha
I remember running into this problem quite sometime ago. What happens is that in order to access the file jsi18n you need to be logged in. What you need to do it's save a copy of the file and point to the file instead. thank you, Victor rocha rochapps.com On Fri, Feb 1, 2013 at 11:52 PM, KVR wro

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread KVR
Yeah, it's throwing js error. Could you please tell me how to point that, I am just newbie to Django. I've tried adding the following to urls.py (r'^jsi18n/(?P\S+?)/$', 'django.views.i18n.javascript_catalog'), I did not understand what to replace with On Saturday, February 2, 2013 10:38:29 A

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread Victor Rocha
One way around this is to call the view on a different path one thats not password protected such as the admin urls. In order to do that, you simply add this to your urls: (r'^my_url/jsi18n', 'django.views.i18n.javascript_catalog') and when your loading the javascript files on your templated you do

Re: How is fatcow for django hosting?

2013-02-01 Thread Mike
I have been shopping for hosting for my project too (in my case a hobby project that I will monetize ). I don't know anything about Fat Cow but many hosts will give you shell access and let you host django powered sites. What most won't do is let you run long running background processes such

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread KVR
Thank you very much Victor Rocha !! That resolved my issue. Regards, kvr On Saturday, February 2, 2013 11:06:29 AM UTC+5:30, Victor Rocha wrote: > > One way around this is to call the view on a different path one thats not > password protected such as the admin urls. > In order to do that, you s

Re: Problem with FilteredSelectMultiple widget

2013-02-01 Thread Victor Rocha
You are very welcome! On Sat, Feb 2, 2013 at 1:14 AM, KVR wrote: > Thank you very much Victor Rocha !! > That resolved my issue. > > Regards, > kvr > > > On Saturday, February 2, 2013 11:06:29 AM UTC+5:30, Victor Rocha wrote: > >> One way around this is to call the view on a different path one t