Re: Registration error

2013-06-24 Thread Deepak Sharma
Hi, @Marcin Thanks for the help. I changed whatever you said but new error occurred. error at /accounts/register/ [Errno 2] No such file or directory My url.py file is like this from django.conf.urls.defaults import * from django.views.generic import TemplateView from django.contrib import adm

Re: apps referencing username field in custom user classes

2013-06-24 Thread Russell Keith-Magee
On Tue, Jun 25, 2013 at 7:58 AM, Victor Rajewski wrote: > I agree that none of these suggestions are particularly onerous, and I > have implemented a suitable work-around for my project. > > However, looking at the bigger picture: > >- In django <= 1.4, all user objects had a username field, w

Re: apps referencing username field in custom user classes

2013-06-24 Thread Victor Rajewski
I agree that none of these suggestions are particularly onerous, and I have implemented a suitable work-around for my project. However, looking at the bigger picture: - In django <= 1.4, all user objects had a username field, which many apps came to rely on as a human-readable unique ide

Re: Registration error

2013-06-24 Thread Marcin Szamotulski
On 16:12 Mon 24 Jun , Deepak Sharma wrote: > On Mon, Jun 24, 2013 at 3:58 PM, Tom Evans wrote: > > > > Looks like you've updated your {% url %} tags to quote the view name, > > and in this case, you've quoted both the view name and the argument > > that should be used. This leads django to not

Re: Question about python for web

2013-06-24 Thread Sergiy Khohlov
check permission by chmod and verify that handler is correct Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Jun 24, 2013 at 4:07 AM, Dat Huynh wrote: > Dear all, > > I have a very simple question about running a simple web application with > apache on MacOS. > > Step 1: Copy th

Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
Do you already read this: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax it appears to pass csrf via ajax has some incoveniences... 2013/6/24 Sandro Dutra > So sorry, but I never try to do this via AJAX request, but I know there's > a way, Django probably provides a way... > > > 2

Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
So sorry, but I never try to do this via AJAX request, but I know there's a way, Django probably provides a way... 2013/6/24 Hélio Miranda > Nadae, > tried that disses you, but gives the same error > > -- > You received this message because you are subscribed to the Google Groups > "Django user

Re: Set function to receive POST request

2013-06-24 Thread Hélio Miranda
Nadae, tried that disses you, but gives the same error -- 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...@googlegroups.com. To post to this

Re: Set function to receive POST request

2013-06-24 Thread Hélio Miranda
Odin I have it, because if you do via the button that is there on the page works, does not work is to send the request by the client. -- 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

Re: Set function to receive POST request

2013-06-24 Thread nadaei...@gmail.com
hi Miranda, Try this: scope.deleteeeMovie $ = function (id) { * $scope.deleteeeMovie = function(ID){* * $http({* * method: 'POST',* * url: "http://localhost:8080/test/delete/51c82ba48774a7118875b145",* * //data: {'id': ID} data: {**'id': ID: id_checked, 'csrfmiddlewaretoken': '{{c

Re: Set function to receive POST request

2013-06-24 Thread Sandro Dutra
You've to write {% csrf_token %} after the tag, for example: {% csrf_token %} ... 2013/6/24 Hélio Miranda > Hi! > My problem is this, I have the following function: > *def delete (request, id):* > * if request.method == 'POST':* > * my_painting Movie.objects.get = (id = id)* > *

Set function to receive POST request

2013-06-24 Thread Hélio Miranda
Hi! My problem is this, I have the following function: *def delete (request, id):* * if request.method == 'POST':* * my_painting Movie.objects.get = (id = id)* * for img in my_painting.MovieCover:* * img.delete ()* * my_painting.delete ()* * * * return re

redirect to unfinished section in django

2013-06-24 Thread Sivaram R
I am developing an application in Django.It is developed to create new report ,edit the report and delete the report. Consider i am having 5 pages in my app and if i completed edit in 1st two pages,now i am saving the report so,it will be saved as draft.For editing the draft report,a button

Re: Registration error

2013-06-24 Thread Deepak Sharma
On Mon, Jun 24, 2013 at 3:58 PM, Tom Evans wrote: > > Looks like you've updated your {% url %} tags to quote the view name, > and in this case, you've quoted both the view name and the argument > that should be used. This leads django to not find the view name. > > Eg: {% url "email_validation_pro

Re: Registration error

2013-06-24 Thread Tom Evans
On Mon, Jun 24, 2013 at 11:24 AM, Deepak Sharma wrote: > I am running an application everything running properly but when i > trying to sign-up it displays an error > > NoReverseMatch at /accounts/register/ > Reverse for 'email_validation_process key' with arguments '()' and > keyword arguments '{

Registration error

2013-06-24 Thread Deepak Sharma
I am running an application everything running properly but when i trying to sign-up it displays an error NoReverseMatch at /accounts/register/ Reverse for 'email_validation_process key' with arguments '()' and keyword arguments '{}' not found. Error during template rendering In template /usr/l

Re: apps referencing username field in custom user classes

2013-06-24 Thread Russell Keith-Magee
On Mon, Jun 24, 2013 at 1:51 PM, Victor Rajewski wrote: > Thanks Russ, > > This solves the problem from one end, however in my case the wrong end, as > it would require the app I'm using (and presumably many > other apps relying on the username field) to be re-written; besides which, > USERNAME_FI

Delete files from GridFS mongodb

2013-06-24 Thread Hélio Miranda
Hi I have an application and one django mongoengine, in which I am inserting images in mongodb's GridFS. So far so good, I am using this code to insert and everything ok. if request.method == 'POST': my_painting Movie.objects.get = (id = id) files = []

Re: CachedStaticFilesStorage with database cache backend - static file not found (404)

2013-06-24 Thread luke lukes
Hi Denis, I don't think it's related to database, simply a database backend cache was the simplest way to try that feature (e.g. i don't know memcache but I think that it requires over installation other sysadmin tweaks..). Anyway, - collectstatic tells me that a file (an image) is missing in an

Re: 'FormSet' object has no attribute 'save'

2013-06-24 Thread Tom Evans
On Sun, Jun 23, 2013 at 4:05 PM, Mário Idival wrote: > Hi guys, > > I need of little help with formsets. I want save 3 instances of an form in > databases. > E.G : > name > lastname > - > name > lastname > - > name > lastname > - > I try use formset but I'm not getting save, expected this error fo