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
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.
> "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
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
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
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
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
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:
>
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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:
>
>
(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,
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
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
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
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
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
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
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
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
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
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:
>
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
34 matches
Mail list logo