Re: CSRF missing token

2010-12-09 Thread Ilian Iliev
Hi, you have to include the request context to use CSRF token. from django.template import RequestContext return render_to_response('index.html', locals(), context_instance = RequestContext(request)) Greeting, Ilian Iliev On Thu, Dec 9, 2010 at 2:08 AM, martvefun wrote: > Hell

Re: Returning value directly to another function

2010-12-09 Thread Ilian Iliev
as it is > View function. > > I dont know if this is possible. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com.

Re: Problems installing south as part of django-cms

2010-12-09 Thread Ilian Iliev
> "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/d

Re: Problems installing south as part of django-cms

2010-12-09 Thread Ilian Iliev
ediaMiddleware', >'django.middleware.cache.FetchFromCacheMiddleware', > > But, now I get the error: > > CMS Permission system requires > cms.middleware.user.CurrentUserMiddleware. > Please put it into your MIDDLEWARE_CLASSES in settings file > > I have v

Re: Create new entry on first save of different model

2010-12-09 Thread Ilian Iliev
Hi, you can overload the save method of Model1 in a way that it checks type and if it is machine, create two record in Model2. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: ilian.i-n-i.org On Thu, Dec 9, 2010 at 11:21 PM, Nick wrote: > I am working o

Re: Problems installing south as part of django-cms

2010-12-09 Thread Ilian Iliev
mporting middleware > cms.middleware.toolbar: "No module named toolbar" > > And, if I go into my Django shell, and type: > > import sys > sys.path (##shows the same python path as above) > from cms.middleware.toolbar import * > > I get: > > ImportError: N

Re: slightly complicated radio input question

2010-12-10 Thread Ilian Iliev
d this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more option

Re: Problem with my view or template (DRIVES ME NUTS)

2012-03-05 Thread Ilian Iliev
Hi, first of all use if request.POST, second pehaps you should pass the pk as part of the action URL. Do you get any errors or anything? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Mon, Mar 5, 2012 at 4:54 PM, leaks wrote: >

Re: serialization in Django

2012-03-06 Thread Ilian Iliev
If you are returning json it seems more proper to me to parse it using JavaScript. Why exactly do you return json but not a normal dict/object? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Mar 6, 2012 at 9:14 PM, angel wrote

Re: Visibility images/css from another directories

2012-05-17 Thread Ilian Iliev
Hi, can you add some more details. Are you using web server or you have only the dev one for the moment. If you have web server what is it: Apache, NginX etc.? Best wishes, Ilian Iliev -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On

Re: Visibility images/css from another directories

2012-05-17 Thread Ilian Iliev
load them from separate directory instead from the project? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Thu, May 17, 2012 at 1:50 PM, Stone wrote: > Sorry, > now I have only the dev one for the moment, > but for real usa

Site stealing content

2012-09-20 Thread Ilian Iliev
indexed content. Please if anyone of you is also suffering from this content stealing send an DMCA notice or share if you have other ideas how we can stop this. Thanks in advance, Ilian Iliev -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.o

Re: Update Services for Django

2012-09-26 Thread Ilian Iliev
Iliev -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org Skype: eng.ilian_iliev On Wed, Sep 26, 2012 at 6:14 PM, Tom wrote: > Hi All, > > Wordpress has something called Update Services, a feature that pings > certain web services whe

Re: Update Services for Django

2012-09-26 Thread Ilian Iliev
Hi Tom, I believe here you can find how the pingback is implemented in zinnia but as you will see the example is not that simple. Consider if you need so complex one or just a get/post to specific URL will be enough. Greetings, Ilian Iliev -- eng. Ilian Iliev Web Software Developer Mobile

Re: Problems trying to use ManyToMany field before saving in a ModelForm

2011-09-12 Thread Ilian Iliev
> HttpResponseRedirect return (reverse (manager)) > # > > . . . > > -- > 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.c

Re: Caching/Reload problem - cannot refresh model data

2011-09-14 Thread Ilian Iliev
How are you pulling the data from the database in the desktop app - using pure SQL or using the ORM? If using the ORM it is possible it to cache the results of the database so you can run: mymodel.objects.update() This should clear the cache. -- eng. Ilian Iliev Web Software Developer Mobile

Re: Caching/Reload problem - cannot refresh model data

2011-09-14 Thread Ilian Iliev
breaking the transaction(is this possible)? I am not trolling just asking? Regards, Ilian Iliev -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Wed, Sep 14, 2011 at 2:34 PM, Tom Evans wrote: > On Wed, Sep 14, 2011 at 8:12 AM, Il

Re: Caching/Reload problem - cannot refresh model data

2011-09-15 Thread Ilian Iliev
same time? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Thu, Sep 15, 2011 at 11:43 AM, Tom Evans wrote: > On Wed, Sep 14, 2011 at 6:57 PM, Ilian Iliev wrote: > > Hi Tom, > > I checked the link you send and probably you

Re: Caching static images using memcache/nginx

2011-09-15 Thread Ilian Iliev
subscribed to the Google Groups > "Django users" group. > > To post to this group, send email to django-users@googlegroups.com. > > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group

Re: Caching static images using memcache/nginx

2011-09-16 Thread Ilian Iliev
rce like a image? > > Thomas > > On Thu, Sep 15, 2011 at 4:52 PM, Ilian Iliev wrote: > > How about to set correct headers and make the images cached on user side > > instead > > of wasting memchached resources? > > If you are serving tons of thumbs multiple times

Re: Does ModelForm follow ForeignKey relations ?

2011-09-20 Thread Ilian Iliev
Hi, ModelForm should automatically create a dropdown list for your foreign key. If there is nor such drop-down created probably you are doing something wrong. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Sep 20, 2011 at 1:26 PM

Re: Does ModelForm follow ForeignKey relations ?

2011-09-20 Thread Ilian Iliev
So you want to edit the User object through the ModelForm of the other model, or you just want to display it? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Sep 20, 2011 at 4:37 PM, Jonas Geiregat wrote: > >

Re: Reuse admin for views when some fields are from remote sources

2011-09-26 Thread Ilian Iliev
(self): return remote_property class MyModelAdmin(admin.ModelAdmin) list_display = ( 'remote_property', 'other_model_field') -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Mon, Sep 26, 2011 at 2:11 PM,

Re: Reuse admin for views when some fields are from remote sources

2011-09-26 Thread Ilian Iliev
If you want to make these editable you should declare your own form for the admin and overwrite the save method. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Mon, Sep 26, 2011 at 7:37 PM, cesar.ortiz wrote: > It works for the L

Re: MYSQL Installation error

2011-09-26 Thread Ilian Iliev
Probably your MtSQL is not working, Try to telnet to this port to check is it open and is something listening on it. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Mon, Sep 26, 2011 at 11:32 PM, PremAnand Lakshmanan wrote: > Im try

Re: Dynamic parameters in django URLs

2011-09-29 Thread Ilian Iliev
o mach you may run multiple queries in the view to check which one of them responds to the correct keyword. But I found this one a little bit "confusing" about the users. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Thu, Sep

Re: [Admin] Form Fields Rendering Completely Incorrectly

2011-09-30 Thread Ilian Iliev
As stated in dcumentation: https://docs.djangoproject.com/en/dev/ref/models/fields/#textfield A large text field. The admin represents this as a (a multi-line input). You should use CharField instead of TextField -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-09-30 Thread Ilian Iliev
Hi, you can do it with CSS styling, custom widget or custom HTML. Check this link for the custom HTML approach - http://ilian.i-n-i.org/django-forms-choicefield-and-custom-html-output/ This is not the best one but if you need it only for a single place go for it. -- eng. Ilian Iliev Web Software

Re: __unicode__ and u'%s'?

2011-10-01 Thread Ilian Iliev
Hi, just ensure that your files and DB connection are using Unicode and return self.name will be enough. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Sat, Oct 1, 2011 at 10:11 AM, Victor Hooi wrote: > heya, > > W

Re: Django Forms: Radio buttons and label displayed in the same line?

2011-10-01 Thread Ilian Iliev
I am glad I could help. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Sat, Oct 1, 2011 at 2:07 AM, voss wrote: > Hi eng. Ilian Iliev, > > I visited your page ( > http://ilian.i-n-i.org/django-forms-choicefield-and

Re: effective adding records in Django site admin

2011-10-04 Thread Ilian Iliev
Hi, you can always create custom admin page for your models by extending the default admin. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Oct 4, 2011 at 8:01 AM, veva...@yandex.ru wrote: > Good morning! > Could you tell

Re: Randomly clearing database tables

2011-10-04 Thread Ilian Iliev
Hi, this sounds like a bad configuration of the tests database. Is it possible that your test are clearing your database? Have you made some special test configuration? -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Oct 4, 2011 at

Re: get_FOO_display

2011-12-13 Thread Ilian Iliev
Or you can change your field to IntegerField instead of CharField if you are planning to have only Integer values for the choices. -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Website: http://ilian.i-n-i.org On Tue, Dec 13, 2011 at 9:53 AM, Mike Dewhirst wrote: >

Re: Multi widget?

2011-01-03 Thread Ilian Iliev
egroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- eng. Ilian Iliev Web Software Developer Mobile: +359 88 66 08 400 Websi