hi, sax
I downloaded the package and want to install is using normal way
then I got error like this:
D:\saxix-django-iadmin-ec7ad2a>setup.py install
Traceback (most recent call last):
File "D:\saxix-django-iadmin-ec7ad2a\setup.py", line 44, in
version = ".".join(iadmin.__version__),
TypeEr
django-localeurl uses a similar URL scheme to localized urls (i.e.
"/en/some/path" becomes "some/path" with an extra environment variable for
localization).
You could check the source to see how it's being done there and adapt it:
https://bitbucket.org/carljm/django-locale
It uses custom middlew
It would work just fine. Something like this:
{% for text, images in my_iterable %}
{{ text }}
{% for image in images %}
{% endfor %}
{% endfor %}
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send em
On Jul 9, 10:36 pm, Shawn Milochik wrote:
> Make an iterable in your view (list or tuple) containing lists or tuples
> of two items -- the text and the image link.
>
> Then iterate through that in your template with a 'for' tag.
This doesn't work. The webpage text is one object (just one
textfiel
Question, have you ever used Python before?
If no, then I suggest you learn Python before jumping into Django.
If yes, then you need to learn more about Python.
Cal
On Sat, Jul 9, 2011 at 9:21 PM, morning yao wrote:
> so ,here is the Error Traceback,i need your help,thanks!
>
Make an iterable in your view (list or tuple) containing lists or tuples
of two items -- the text and the image link.
Then iterate through that in your template with a 'for' tag.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this
On 07/09/2011 04:21 PM, morning yao wrote:
so ,here is the Error Traceback,i need your help,thanks!
___
Environment:
Did you read the traceback you posted?
Exception Type: AttributeError at /
Exception Value: 'Settings' object has no attribu
so ,here is the Error Traceback,i need your help,thanks!
___
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.content
> Would using the get_absolute_url() method on your model and then using
> that in your tags work?
thanks for the reply. This works when you have one dictionary and one
template. I want to merge the output of two queries, and render this
in a template.
Query one gives me:
lots of text
{{ image1
Hi,
Wanted to run this by you before I raise the suggestion in django-
development: the core generic class FormMixin has some methods that
allow to set a form: get_initial, get_form_kwargs and so on. However,
it's missing a method to set up the instance (which has some uses) -
should it be added?
On 07/09/2011 03:52 PM, het.oosten wrote:
I have two models. One containing images, and one containing the text
of a web page. While the text remains the same, the selection of
images vary, depending on the session ( I use different themes/moods
depending on the season). The selection of images w
I have two models. One containing images, and one containing the text
of a web page. While the text remains the same, the selection of
images vary, depending on the session ( I use different themes/moods
depending on the season). The selection of images works perfectly, but
now i am stuck merging t
> I'm not a programmer by profession, but I use Python a lot. For
> example, I use it to interface with the 90+ tables of Drupal directly
> to avoid php. Drupal is just horrible with all dependencies and
> trying to get the proper data displayed. Php just isn't my thing and
> you seem to spe
On Jul 8, 11:03 am, Shawn Milochik wrote:
> This topic came up on the list a few months back, and I just wanted to
> share the solution I've put into place.
>
> Short version:
>
> 1. Ensure that my Web server (nginx) passes the user's real IP address
> in the request.
>
> 2. For POST requests to t
So go read this, like Karen posted in the previous thread?
https://code.djangoproject.com/ticket/15671
On Sat, Jul 9, 2011 at 4:20 PM, pankaj wrote:
> As per the error, i have changed the position of the classes in my
> settings.py, but still it is giving error.
>
> settings.py file
>
> MIDDLEW
On Sat, Jul 9, 2011 at 4:24 PM, Josh wrote:
> On 9 jul, 15:15, "Cal Leeming [Simplicity Media Ltd]"
> wrote:
> > On Sat, Jul 9, 2011 at 9:19 AM, Josh wrote:
> > > I want to switch my sites from Drupal to Django. I already read a lot
> > > about Django and made a few sample apps. I think Django
On Jul 9, 6:13 pm, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> It means that your Python instance ran out of memory in the middle of trying
> to perform an operation of some sort.
>
> You can either change your code to have a lower memory footprint (i.e.
> re-writing it so not as much memory i
On 9 jul, 15:15, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> On Sat, Jul 9, 2011 at 9:19 AM, Josh wrote:
> > I want to switch my sites from Drupal to Django. I already read a lot
> > about Django and made a few sample apps. I think Django is better
> > suited to my needs, but I do have a few qu
As per the error, i have changed the position of the classes in my
settings.py, but still it is giving error.
settings.py file
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.Au
On Sat, Jul 9, 2011 at 2:42 PM, Karen Tracey wrote:
> On Sat, Jul 9, 2011 at 9:08 AM, Cal Leeming [Simplicity Media Ltd] <
> cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>> Python tracebacks can sometimes be cryptic, and difficult to understand.
>> And we've all had our fair share of times when
On Sat, Jul 9, 2011 at 9:08 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
> Python tracebacks can sometimes be cryptic, and difficult to understand.
> And we've all had our fair share of times when we've seen a traceback and
> thought "wtf?".
>
> This not on
Please refer to https://code.djangoproject.com/wiki/UsingTheMailingList
On Sat, Jul 9, 2011 at 8:41 AM, sandeep kaur wrote:
> I want to make some of my data in django-templates, variable. And
> separate single file to define the variables. How can I do this?
>
> --
> You received this message bec
Unless of course, you are looking to become a programmer? If so, then
welcome aboard :)
On Sat, Jul 9, 2011 at 2:15 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
>
>
> On Sat, Jul 9, 2011 at 9:19 AM, Josh wrote:
>
>> I want to switch my sites from Drupal t
On Sat, Jul 9, 2011 at 9:19 AM, Josh wrote:
> I want to switch my sites from Drupal to Django. I already read a lot
> about Django and made a few sample apps. I think Django is better
> suited to my needs, but I do have a few questions that I couldn't find
> an answer for. So I thought of a few s
It means that your Python instance ran out of memory in the middle of trying
to perform an operation of some sort.
You can either change your code to have a lower memory footprint (i.e.
re-writing it so not as much memory is needed), or you can increase your
address space limit.
You'd need to pos
Python tracebacks can sometimes be cryptic, and difficult to understand. And
we've all had our fair share of times when we've seen a traceback and
thought "wtf?".
This not one of them.
In fact, in this rare example, the traceback is not only telling you what is
wrong, but it is also telling you h
Hmm, some concerns:
* no search feature (at least not one easily accessible that I can see)
* styling is terrible, looks like something made for SEO :X
* no 'list' view (to show only topics and not body)
But there again, I'm of the opinion that the django site itself could do a
lot better, and I'
Trust me but take this advice : try to develop a simple webapp in django
which stores an Item in a table
and when requested displays to the user. And if you want , you can also look
at sample apps in here ,
and build along with the instructions: http://www.lightbird.net/dbe/
http://www.djangobook.
# Sqlite3 comes with its limitations - are you aware of them before using
them?
# Are you sure that your application logic which messes around with db is
clean?
-V
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send ema
Read the error again please. The errors are *printed* for a reason - reason
being for you to read.
And sometimes, they also mention how to fix it .
On Sat, Jul 9, 2011 at 5:59 PM, pankaj wrote:
> Hi,
>
> Can someone please help to fix this issue? Please let me know if you
> need any more info.
>
Like with any brute force protection, it depends how paranoid you want it to
be. You'd generate a hash of specific request parameters (such as session
id, user agent, etc etc). All you'd need to do is add a new field next to ip
called requesthash, then use unique_together on those two fields
On 9 J
On Fri, 2011-07-08 at 12:03 -0400, Shawn Milochik wrote:
> I'm using IP instead of user because this prevents an attacker
> from
> inconveniencing a legit user or getting a "fresh start" just by
> guessing
> a different username.
>
>
and what happens when you have a 100 users from the sam
Hi,
Can someone please help to fix this issue? Please let me know if you
need any more info.
Traceback (most recent call last):
File "/ot/w/u/django-s/django/core/handlers/base.py", line 80, in
get_response
response = middleware_method(request)
File "/ot/w/u/django-s/django/contrib/auth
Hi,
I am frequently getting this error, but could not identify the root
cause of this issue.
Traceback (most recent call last):
File "/ot/w/u/django-s/django/core/handlers/base.py", line 100, in
get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/ot/w/u/
Hi,
Can someone please help to fix this issue?
Traceback (most recent call last):
File "/ot/w/u/django-s/django/core/handlers/base.py", line 80, in
get_response
response = middleware_method(request)
File "/ot/w/u/django-s/django/contrib/auth/middleware.py", line 98,
in process_request
Put {% csrf_token %} in your form and please read
https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/ to learn why.
For example
{% csrf_token %}
{% for field in form %}
{% include "formfields.html" %}
{% endfor %}
2011/7/9 Harjot Gill
> @ All
> i have created a login form in django.
On Sat, Jul 9, 2011 at 3:32 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
>
> Or at the very least, we should create a wiki page called "UserBlogs" or
> something like that, and add your link along with a brief description (no
> more than 1 sentence long - s
I want to switch my sites from Drupal to Django. I already read a lot
about Django and made a few sample apps. I think Django is better
suited to my needs, but I do have a few questions that I couldn't find
an answer for. So I thought of a few solutions that might do the
trick. I'm not really a web
> @ All
> i have created a login form in django.
> but after filling the username and password when click on submit, it
> shows the following error :
>
> Forbidden (403)
>
> CSRF verification failed. Request aborted.
This has been asked many times before on this list.
I advise you to read th
@ All
i have created a login form in django.
but after filling the username and password when click on submit, it
shows the following error :
Forbidden (403)
CSRF verification failed. Request aborted.
please help me.
--
You received this message because you are subscribed to the Google Groups
On Sat, Jul 9, 2011 at 11:02 AM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
> Keith makes a very good point.
>
> So how about this, a lot of us write blogs (or are planning to) about
> various things we've discovered, and these usually have a lot of effort pu
Keith makes a very good point.
So how about this, a lot of us write blogs (or are planning to) about
various things we've discovered, and these usually have a lot of effort put
into them.
Whenever someone does a blog update, this information should also be placed
somewhere in the current wiki. Ju
look in urls.py, this might turn out to be missing quotes around the
view function that you're targetting.
On Jul 8, 3:33 pm, Brent wrote:
> When I go to 127.0.0.1:8000/admin/ I receive this error:
>
> Caught ViewDoesNotExist while rendering: Tried base in module
> django.views.generic. Error was
I want to make some of my data in django-templates, variable. And
separate single file to define the variables. How can I do this?
--
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
@Rodrigo Gomes
Thank you , my problem is solved.
@Jagdeep Singh Malhi
Yes , in templates.
--
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 this group,
FYI i ended up basically created a custom {% url %} tag, which is a
wrapper for the django standard url tag, but which adds the org_slug
as a parameter. Its a bit hacky/magical but saved me a bunch of
time. If any one runs into this issue, email me and I can show you
what I did.
On Jul 8, 4:38 p
46 matches
Mail list logo