How does one go about authenticating rest request?
--~--~-~--~~~---~--~~
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 grou
What is the fastest way to remove ^M from every files in main project
folder and apps folders. Doing it by hand seems time consuming. Is
there a simple script take care of this? if I just leave the ^M in
python code, would it cause problems?
--~--~-~--~~~---~--~
I have commented out this from settings.py,
#'django.contrib.contenttypes',
and syncdb and fixtures are working.
I am running python 2.4.3 on Fedora 6 and django svn revision # 6980.
What impact commenting out contenttypes would have on django project?
--~--~-~--~~~---
I am getting this error when I run syncdb command in linux and get
this error: ValueError: list.remove(x): x not in list
How did you fix it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
I have django dev version 6941.
There seems to be a problem with manage.py line when I do python
manage.py syncdb:
execute_manager(settings)
It creates the tables and but fails to populate initial data.
#!/usr/bin/env python
from django.core.management import execute_manager
try:
# This is fo
I have a view which allows users to upload pictures and add tags,
description to them. I have to update two tables: post and img
If I want to do this by REST, how do you do this? Is REST only suited
for manipulating one resource(one table) at a time?
--~--~-~--~~~---
python orm sqlalchemy allows sharding. I would like to me sqlalchemy
integrated into django. I am python noob, so I can't go around
hacking the framework. I like django, but the whole framework is not
decoupleable.
--~--~-~--~~~---~--~~
You received this message
By the way Karen, thanks for the help.
joe
--~--~-~--~~~---~--~~
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, se
Before I was using pydev 1.2.5 with eclipse 3.2 with mylar. Now I
just upgraded to eclipse 3.3 and pydev 1.3.10. Debugger is working,
now I can click on classes, it just takes me there.
If try to install pydev 1.3.10 from eclipse install manager, then you
will get mylar package error. Just dow
My variable view window doesn't show anything. All I get in the
Variable View is::
Global:
error
error
I set the break points, but nothing showing up in Variable window in
debugger perspective except "Global error error".
Any suggestions?
When I start the dev server inside eclipse under debug
That seems to be a silly question now. I have another related
question regarding type of "self.cleaned_data['guess_the_number']",
string or integer or float?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
I guess you have to use session to store the data, check if user is
authenticated inside the view, if not redirect to login page. Also set
the hidden input type so that after the logging in, it will be routed
back to the original view.
--~--~-~--~~~---~--~~
You re
Breakpoint works if you set it and run in debug mode (click the bug
button, not the play button), don't run it in run mode and expect
breakpoint to work. That's what I was doing.
Now I have one more problem:
I have selected a form object and a variable to watch and set the
breakpoints, but when
I have the same problem, breakpoint is not working when you set it
inside eclipse and call the urls from the browser. This is how I have
my setup:
c:c:\my_web_projects\mysite <- this folder contains the stuff like
manage.py, settings, apps folder for each apps
My breakpoint and watching variab
Validation checks the number entered by the user is between the range
and this check is done in "def clean_guess_the_number". This is not
working.
Seems like "def clean_guess_the_number(self)" never executed when you
post the data and when form.is_valid() called.
class GuessForm(forms.Form):
I have @login_required decorator for the view function that handles
this form and I am already logged in.
I commented out the "def clean" from the form and when I submit the
form field reason without a value, I get this error:
Exception Type: ValueError
Exception Value:The view dj
I have a form and trying to do validation. When I submit a form
without any values into the field, "reason", I get this error.
Exception Type: KeyError
Exception Value:'reason'
at this line of ReasonForm:
if(self.cleaned_data['reason']==''):
here is my ReasonForm:
class Reason
I want to display the form even when the user is not logged in, but
want to allow them to do form submission. So when they post the data,
@login_required decorator is called on one of the view functions. Now
user logs in and I want the earlier post data (form submission) to be
passed to the view
I added the hidden input "next" in my login.html and it works.
Problem now is, I need to go back to the original page. The steps as
follows:
1) user at original page
2) if user not logged in, then user logs in (@login_required
decorator).
3) sent to a html view with form submission (http://1
I have added @login_required decorator in one of my view functions.
When I request page that has login decorator, I get routed to this
url:
http://127.0.0.1:8000/login/?next=/post/create/
After I login, it goes to this url:
http://127.0.0.1:8000/accounts/profile/
What I want it to do is, send th
I did a recent update on django and DualSessionMiddleware is not
working anymore.
http://code.djangoproject.com/wiki/CookBookDualSessionMiddleware
Seems like
from django.contrib.sessions.middleware import SessionWrapper is
replaced with
from django.contrib.sessions.middleware import SessionMiddl
For example, many php forums will redirect you to the previous page
you were in, when you login to the forum. How do I do this in Python/
Django?
HTTP REFERER does not work all the time. What is the best way to do
this?
--~--~-~--~~~---~--~~
You received this m
For example, you are at this url:
www.site.com/post/id/1
and view1.py display the view1.html for the above url.
In the view1.html, I have a form and need to submit some value to
another view2.py
and validate, then send it back to view1.py so view1.html is displayed
at the url: www.site.com/post
23 matches
Mail list logo