s3-File Upload Generate Error Message: FileNotFoundError

2023-01-03 Thread ramdom Use
Hello to All! I need your help figuring out how to solve this issue I'm having while trying to upload directly to s3 bucket. I have a function that works perfectly outside of django, I'm trying to implement it within django so as to be able to upload directly to s3. 1. I do want to first save

error message

2022-03-23 Thread Abhinandan K
- -- 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 view this discussion on the web visit

Re: i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

2021-07-04 Thread Lalit Suthar
rewrite polls/urls.py like below path(''", views.index, name='index'), On Fri, 25 Jun 2021 at 18:59, Symaxx wrote: > I started learning Django from the documentation but it was very hard for > me and it took me a very long time to grasp the concept > > I suggest you try using books by w.s

Re: i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

2021-06-25 Thread Symaxx
I started learning Django from the documentation but it was very hard for me and it took me a very long time to grasp the concept I suggest you try using books by w.s vincent http://wsvincent.com/books/ these are the best for me and them help you stay engaged On Wed, Jun 23, 2021 at 5:19 PM

i am trying to learn django from django documentation but i am getting an error message in the first part of the documentation

2021-06-23 Thread vatsal narula
Using the URLconf defined in blogs.urls, Django tried these URL patterns, in this order: admin/ The current path, polls/, didn’t match any of these. this is the error i am getting after i wrote the following code: 1. for urls.py from django.contrib import admin from django.urls

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
coolguy: I tried it without the quotes. Maybe that was the issue. Dana subota, 12. rujna 2020. u 20:33:52 UTC+2 korisnik coolguy napisao je: > Keep this handy as well... > > https://docs.djangoproject.com/en/3.1/ref/migration-operations/#addfield > > On Saturday, September 12, 2020 at 1:43:37

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Keep this handy as well... https://docs.djangoproject.com/en/3.1/ref/migration-operations/#addfield On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell > and if I

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
Interesting... did you try the email with quotes or without it On Saturday, September 12, 2020 at 1:43:37 PM UTC-4 mislav@gmail.com wrote: > A question to coolguy: > > *What should I have done if I selected option 1?* I get the Python shell > and if I input a default value - let's say

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
A question to coolguy: *What should I have done if I selected option 1?* I get the Python shell and if I input a default value - let's say "t...@test.com", what else do I need to do? I tried to just provide the default value, but it wouldn't accept it, complaining that it was invalid Python

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
yes it works after deletion because old records get deleted. but better approach is to do changes in migration.py files On Sat, Sep 12, 2020 at 8:14 PM Mislav Jurić wrote: > Hey Danish, > > I was able to resolve the error by deleting the *db.sqlite3* file from my > project root directory and

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread coolguy
just FYI... You didn't have to delete the db.sqllite3 file rather would have followed on-screen direction and provided a default value to persist in the existing records in your database. Later you could have edited the info through your program and make correction. This is pretty normal

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey Danish, I was able to resolve the error by deleting the *db.sqlite3* file from my project root directory and all of the *migrations* folders from all of my apps. Thank you for responding. Best, Mislav Dana subota, 12. rujna 2020. u 14:56:13 UTC+2 korisnik mailto...@gmail.com napisao

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey Danish, I was able to resolve the error by deleting the *db.sqlite3* file from my project root directory and all of the *migration* folders from all of my apps. Thank you for responding. Best, Mislav Dana subota, 12. rujna 2020. u 14:56:13 UTC+2 korisnik mailto...@gmail.com napisao je:

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
you need to give default value in email. seems few records are already exist. else delete sqllite file and try again. On Sat, Sep 12, 2020 at 6:22 PM Mislav Jurić wrote: > Hey guys, > > I added an EmailField > to > some of

I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mislav Jurić
Hey guys, I added an EmailField to some of my already existing models. When I tried to run: *python manage.py makemigrations* I got the following prompt: *You are trying to add a non-nullable field 'email' to employee

Re: NoReverseMatch error message - Please help

2020-03-31 Thread victor awakan
Sometimes the error can be from your url.py or even views.py and also make sure no typo. Check each on e of the above carefully. Hopefully you might see the bug. Cheers On Tue 31. Mar 2020 at 18.06, Jeff Waters wrote: > Thanks Ryan. > > I've just tried that, but I still get an erro

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Jeff Waters
Thanks Ryan. I've just tried that, but I still get an error message. By the way, is it definitely .id and not _id? I've seen both, and Django docs says: 'Behind the scenes, Django appends "_id" to the field name to create its database column name, which makes me wonder if it mi

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Ryan Nowakowski
can add comments. When I go to the photo gallery page, I get the following error message: NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments '('',)' not found. 1 pattern(s) tried: ['add_comment/$'] The code for the relevant part of the HTML document is as follows

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Kasper Laudrup
Hi Jeff, On 31/03/2020 14.08, Jeff Waters wrote: I am putting together a website which has a photo gallery where users can add comments. When I go to the photo gallery page, I get the following error message: NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments

NoReverseMatch error message - Please help

2020-03-31 Thread Jeff Waters
I am putting together a website which has a photo gallery where users can add comments. When I go to the photo gallery page, I get the following error message: NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments '('',)' not found. 1 pattern(s) tried: ['add_comment

Re: Password reset token expired - get an error message

2020-01-22 Thread mohamed Alisaleh
> So nothing happens. This is correct. Is there a good way / workaround to get > an error message, when the token is expired? > > > Thank you, > Danny  اين الرابط الإعدادات لائعادةكلمة تسجيل الدخول -- You received this message because you are subscribed to the Googl

Re: Password reset token expired - get an error message

2020-01-22 Thread mohamed Alisaleh
> So nothing happens. This is correct. Is there a good way / workaround to get > an error message, when the token is expired? > > > Thank you, > Danny  اشتراك -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Password reset token expired - get an error message

2020-01-22 Thread wagner
an error message, when the token is expired? Thank you, Danny -- 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.co

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2019-12-30 Thread Jose M.
rrect. > > Dylan > > On Sat, Feb 24, 2018 at 3:09 PM, Chunjing Jia > wrote: > >> Hi, >> >> I am running Django 2.0 tutorial01 for polls. I am seeing this error >> message >> >> Using the URLconf defined in mysite.urls, Django tried these URL &g

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2018-02-25 Thread Chunjing Jia
Thank you Dylan! Now I see what's going on there. Best, Chunjing On Saturday, February 24, 2018 at 4:56:10 PM UTC-8, Chunjing Jia wrote: > > Hi, > > I am running Django 2.0 tutorial01 for polls. I am seeing this error > message > > Using the URLconf defined in mysi

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2018-02-24 Thread Dylan Reinhold
as / (or empty), The polls app is in /polls/ (http://localhost:8000/polls/). Which at this point in the tutorial is correct. Dylan On Sat, Feb 24, 2018 at 3:09 PM, Chunjing Jia <jiacju...@gmail.com> wrote: > Hi, > > I am running Django 2.0 tutorial01 for polls. I am seeing this

Running polls tutorial, see the error message "The empty path didn't match any of these."

2018-02-24 Thread Chunjing Jia
Hi, I am running Django 2.0 tutorial01 for polls. I am seeing this error message Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 1. polls/ 2. admin/ The empty path didn't match any of these. Without adding polls, my code works fine, and I can

Re: Tutorial 2 - Ver2.0 - python manage.py makemigrations polls - Error message when running

2018-02-04 Thread Daniel Hepper
Hi, you have a typo in your models.py in this line: votes = models.InterferField(default=0) It should be IntegerField. Cheers, Daniel CanuckT schrieb am So. 4. Feb. 2018 um 21:06: > Hi, new to programming and trying the tutorial out for Django. > > Using this guide:

Tutorial 2 - Ver2.0 - python manage.py makemigrations polls - Error message when running

2018-02-04 Thread CanuckT
Hi, new to programming and trying the tutorial out for Django. Using this guide: https://docs.djangoproject.com/en/2.0/intro/tutorial02/ Running this command: python manage.py makemigrations polls I get this output - way over my head. Any ideas? (I have tried changing the settings.py

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-11-03 Thread fábio andrews rocha marques
I'm using python code to verify the fields. I'm doing it on a View. But with javascript maybe I can solve this issue where i don't need to reload the page. But if i do that, can i do things like check the database to see if it already contains some value? Or store something on request.session

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-11-02 Thread James Schneider
On Thu, Nov 2, 2017 at 12:57 PM, fábio andrews rocha marques < fabioandrewsrochamarq...@gmail.com> wrote: > To use django forms is to use the django Form class and it's components on > a view? How will this solve the issue? If i use the components, don't i > have to re-render the page when a user

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-11-02 Thread fábio andrews rocha marques
{ error_message }}{% endif > %} > > So, every time the user forgets to mention a username or email or password > in this screen, i use render to redirect the user to the same page but this > time displaying a error_message. Let's say he did forget to fill the > textfield with

RE: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread Matthew Pava
Of fábio andrews rocha marques Sent: Tuesday, October 31, 2017 1:02 PM To: Django users Subject: Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message How did you use the never_cache? Because if i just put @never_cache

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread James Schneider
On Oct 31, 2017 11:02 AM, "fábio andrews rocha marques" < fabioandrewsrochamarq...@gmail.com> wrote: How did you use the never_cache? Because if i just put @never_cache before the def of my view: def cadastrarprofessor(request):, it's like it doesn't do anything (i am on the login page, I go to

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread James Schneider
endif %} {% if error_message %}{{ error_message }}{% endif %} So, every time the user forgets to mention a username or email or password in this screen, i use render to redirect the user to the same page but this time displaying a error_message. Let's say he did forget to fill the textfield with a us

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread fábio andrews rocha marques
Re: do i always have to reload/return render a page to show > the errors? if i press go back on browser, i see screens with the error > message > > > > I found this topic within stackoverflow: > https://stackoverflow.com/questions/10906548/django-redirect-behavior-with-back-b

RE: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread Matthew Pava
: Tuesday, October 31, 2017 12:19 PM To: Django users Subject: Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message I found this topic within stackoverflow: https://stackoverflow.com/questions/10906548/django

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread fábio andrews rocha marques
I found this topic within stackoverflow: https://stackoverflow.com/questions/10906548/django-redirect-behavior-with-back-button that seems to me that the user was having the same problem as i am. The only answer i found could work was from magicTuscan, but he just said "I would save the last

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread fábio andrews rocha marques
jango...@googlegroups.com ] *On Behalf Of *fábio andrews > rocha marques > *Sent:* Tuesday, October 31, 2017 11:06 AM > *To:* Django users > *Subject:* Re: do i always have to reload/return render a page to show > the errors? if i press go back on browser, i see screens with the erro

RE: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread Matthew Pava
how the errors? if i press go back on browser, i see screens with the error message to do this, i just have to put the @never_cache on my View's method, right? (after importing 'from django.views.decorators.cache import never_cache'). For some reason, when i did this, the page started and i already

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread fábio andrews rocha marques
esday, October 31, 2017 9:15 AM > *To:* Django users > *Subject:* Re: do i always have to reload/return render a page to show > the errors? if i press go back on browser, i see screens with the error > message > > > > That's a great suggestion. Sure, it will help on situation

RE: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread Matthew Pava
, October 31, 2017 9:15 AM To: Django users Subject: Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message That's a great suggestion. Sure, it will help on situations where i just want the fields to be completed

Re: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread fábio andrews rocha marques
o show the > errors? if i press go back on browser, i see screens with the error message > > Let's say i have a "register a new user" View and on this page, when the > user forgets to inform a password or a username, i show a message to him on > the same page saying &

RE: do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-31 Thread PASCUAL Eric
to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message Let's say i have a "register a new user" View and on this page, when the user forgets to inform a password or a username, i show a message to him on the same page saying &

do i always have to reload/return render a page to show the errors? if i press go back on browser, i see screens with the error message

2017-10-30 Thread fábio andrews rocha marques
ername or email or password in this screen, i use render to redirect the user to the same page but this time displaying a error_message. Let's say he did forget to fill the textfield with a username... he goes back to the same page and sees the error message. After that, let's say everything is r

Re: Error message on 'django.urls.exceptions.NoReverseMatch'

2017-07-31 Thread ron_w_add via Django users
Hello James Thanks for your help. That solved the problem. Ron > > -- 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.

Re: Error message on 'django.urls.exceptions.NoReverseMatch'

2017-07-30 Thread James Schneider
On Jul 30, 2017 12:06 AM, "ron_w_add via Django users" < django-users@googlegroups.com> wrote: I have started writing a page to to display a photo. This page correctly display the photo data (nb. no photo added yet) as well as the ‘Invalid item ID’ message if an invalid value has been requested.

Re: When I migrate the database, I get this get error message: django.db.migrations.exceptions.NodeNotFoundError.

2016-12-26 Thread hemanth pedhinti
Hai, I Think Its better to delete migration files except 001_initial.py and _init_.py and again do makemigrations. Thank you, P.Hemanth. On Fri, Dec 23, 2016 at 11:42 PM, skerdi wrote: > I have deleted the database, migrations, .pyc files, upgraded and > downgraded

When I migrate the database, I get this get error message: django.db.migrations.exceptions.NodeNotFoundError.

2016-12-23 Thread skerdi
I have deleted the database, migrations, .pyc files, upgraded and downgraded Django. I'm not able to fix it. Any suggestions, please? System check identified no issues (0 silenced). Unhandled exception in thread started by Traceback (most recent call last): File

Re: how to return error message if the users call the ajax from othere than my webapp.

2016-01-20 Thread James Schneider
On Wed, Jan 20, 2016 at 1:33 AM, nullvoid wrote: > Hi, > > i am currently working on a project, in that project i written a api there > is no user authentication stuffs anyone can access and there is some ajax > call, when the ajax call happen my view will return a api

how to return error message if the users call the ajax from othere than my webapp.

2016-01-20 Thread nullvoid
Hi, i am currently working on a project, in that project i written a api there is no user authentication stuffs anyone can access and there is some ajax call, when the ajax call happen my view will return a api output to the user. Is there any way user can call the api other than from my

Re: confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-22 Thread Tomáš Sekanina
t does not > let such user log in, but raises a different error message which is: 'Sorry, > that's not a valid username or password.'. I tried posting this question > on different forums but got no answer :(. It seems really simple so I do > not see there a place fo

Re: confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-18 Thread Tomáš Sekanina
model and I need to extend the user authentication >> during login and found this solution: http://bit.ly/1u705o9 It would >> work great for me and I ended up implementing this >> <http://pastebin.com/1SVmumCs> . It works in a manner that it does not >> let such

Re: confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-17 Thread James Schneider
a custom user model and I need to extend the user authentication > during login and found this solution: http://bit.ly/1u705o9 It would > work great for me and I ended up implementing this > <http://pastebin.com/1SVmumCs> . It works in a manner that it does not > let such user l

confirm_login_allowed in subclassed authentication returns wrong error message

2015-02-17 Thread Tomáš Sekanina
er log in, but raises a different error message which is: 'Sorry, that's not a valid username or password.'. I tried posting this question on different forums but got no answer :(. It seems really simple so I do not see there a place for an error unless there is some problem with the custom user mo

Re: [polls tutorial] error message not showing

2014-10-28 Thread otmeek
new to >> Django and not very experienced with Python or programming in general. >> >> My problem is throwing an error message when "Vote" is pressed without a >> choice being selected. >> >> polls/views.py: >> from django.shortcuts import rende

Re: [polls tutorial] error message not showing

2014-10-28 Thread Charly Román
Import Choice in this file. 2014-10-28 13:06 GMT-06:00 otmeek <otm...@gmail.com>: > I am trying to follow part 4 of the polls app tutorial. I am new to Django > and not very experienced with Python or programming in general. > > My problem is throwing an error message when

[polls tutorial] error message not showing

2014-10-28 Thread otmeek
I am trying to follow part 4 of the polls app tutorial. I am new to Django and not very experienced with Python or programming in general. My problem is throwing an error message when "Vote" is pressed without a choice being selected. polls/views.py: from django.shortcuts imp

Re: python path in webpage error message not virtual environment's

2014-02-18 Thread Russell Keith-Magee
On Tue, Feb 18, 2014 at 1:11 PM, knowledge_seeker < sanjivchristop...@gmail.com> wrote: > I understand the importance of doing projects in virtual environments, but > I am hitting one snag. > > When I have an error in django, and I get the generated webpage with an > er

python path in webpage error message not virtual environment's

2014-02-17 Thread knowledge_seeker
I understand the importance of doing projects in virtual environments, but I am hitting one snag. When I have an error in django, and I get the generated webpage with an error message, it shows the 'normal' python path, site packages installed, etc. For example, I have jinja on my main

Display error message

2013-07-13 Thread Kakar Arunachal Service
Hi, I have a site, that has a submit form, but one must be logged in for that. And if the user is not logged in, it redirects it to the login page. And this all fine. My question is, what do I do to display the error message, "You must be logged to submit.", if the user is not logged in

Re: django login/registration validation error message issue

2013-03-11 Thread sri
Hi Tom, Thanks for pointing me to docs. I am able to display the error message now. But because the page is being refreshed, the drop down is not visisble at first. When i click the register button again, then i can see the error message. Is there anyway i can show the registration drop down

Re: django login/registration validation error message issue

2013-03-11 Thread Tom Evans
lf.cleaned_data.get("password1") > password2 = self.cleaned_data.get("password2") > if password1 and password2 and password1 != password2: > raise forms.ValidationError("Passwords don't match") > return password2 > >def save(s

django login/registration validation error message issue

2013-03-11 Thread sri
er.save() return user Can anyone help me how i can pass the registration validation error messages into the drop down modal form and also the login password validation error messages. What i would like to do is displat the error message in the drop down login/registration box itself. Than

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
ah that worked. I have apache on port 80 so I didn't see my django site, so I just tried a different port and all my django sites work on the new port now. I always used port 8080 before I wonder why it doesn't work anymore. Anyway working again, thanks a million devan! On Sat, Dec 15, 2012 at

Re: error message on runserver locally

2012-12-15 Thread Bill Freeman
On Sat, Dec 15, 2012 at 9:30 AM, Phil wrote: > Hi, > > I had django setup and working for over a year now working with it on and > off. I was away for a month, came back and now whenever I run > "django-admin.py runserver 8080" I get the following error... > Maybe there's a

Re: error message on runserver locally

2012-12-15 Thread Dev
Run from command line: "python manage.py runserver" Also i guess you are getting an import error because your 'path environment variable' doesn't contain the path of the directory of your project. Sent from my iPhone On 15-Dec-2012, at 9:34 PM, Phil Brant wrote: > OK,

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
OK, thanks for your help anyway. On Sat, Dec 15, 2012 at 3:57 PM, Ramiro Morales wrote: > > On Dec 15, 2012 11:30 AM, "Phil" wrote: > > > > Hi, > > > > I had django setup and working for over a year now working with it on > and off. I was away for a month,

Re: error message on runserver locally

2012-12-15 Thread Ramiro Morales
On Dec 15, 2012 11:30 AM, "Phil" wrote: > > Hi, > > I had django setup and working for over a year now working with it on and off. I was away for a month, came back and now whenever I run "django-admin.py runserver 8080" I get the following error... > > ImportError: Settings

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Le 15 déc. 2012 à 16:37, Phil Brant a écrit : > Running that in python interpreter just throws an error "Invalid Syntax" Without stacktrace, there isn't much we can do. There might be something wrong in your settings file. Regards, Xavier Ordoquy, Linovia. -- You received

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
Running that in python interpreter just throws an error "Invalid Syntax" On Sat, Dec 15, 2012 at 3:29 PM, Xavier Ordoquy wrote: > > Sorry I should have been more explicit. You need to call the manage.py > through the python interpreter: "python manage.py runserver" because

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Sorry I should have been more explicit. You need to call the manage.py through the python interpreter: "python manage.py runserver" because your local directory isn't in your paths. Regards, Xavier Ordoquy, Linovia. Le 15 déc. 2012 à 16:14, Phil Brant a écrit : > I tried

Re: error message on runserver locally

2012-12-15 Thread Phil Brant
I tried "manage.py runserver 8080" there just get "command not found". I've never done it that way in the past but doesn't work either. On Sat, Dec 15, 2012 at 3:09 PM, Xavier Ordoquy wrote: > > Have you tried to start them with the manage.py runserver instead of >

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Have you tried to start them with the manage.py runserver instead of django-admin ? Regards, Xavier Ordoquy, Linovia. Le 15 déc. 2012 à 15:38, Phil a écrit : > Hi Xavier, I tried a project called "boom" too and same message, plus my > other 3 django projects I had working

Re: error message on runserver locally

2012-12-15 Thread Phil
Hi Xavier, I tried a project called "boom" too and same message, plus my other 3 django projects I had working previously all get the same error now. On Saturday, December 15, 2012 2:34:48 PM UTC, Xavier Ordoquy wrote: > > Hi Phil, > > test is a python module. Your project name conflicts with

Re: error message on runserver locally

2012-12-15 Thread Xavier Ordoquy
Hi Phil, test is a python module. Your project name conflicts with it. You should use another name for your project. Regards, Xavier Ordoquy, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

error message on runserver locally

2012-12-15 Thread Phil
Hi, I had django setup and working for over a year now working with it on and off. I was away for a month, came back and now whenever I run "django-admin.py runserver 8080" I get the following error... ImportError: Settings cannot be imported, because environment variable

Re: Getting a strange error message when setting mysql database

2012-10-22 Thread alfa
I've just figured out that the password set was wrong. I previously passed as the root one, which was wrong. Now, it worked out of the box. On Monday, October 22, 2012 3:35:44 PM UTC+2, alfa wrote: > > Hi, > > After setting the following: > > 'ENGINE': 'django.db.backends.mysql', #

Getting a strange error message when setting mysql database

2012-10-22 Thread alfa
Hi, After setting the following: 'ENGINE': 'django.db.backends.mysql', # postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'testdb', # Or path to database file if using sqlite3. 'USER': 'testuser', # Not used with

Database Router result of error message

2012-07-13 Thread Thibault
Hello, I would like to use multiple database to save model of each application of my project on separate database. I have an issue with Django 1.4 on Python 2.6. I have created a Database Router using the official documentation but when I run the server, i have this error message

ValidationError to error message

2011-12-04 Thread ?manu*
I cannot understand the following behaviour: >>> from django.core.exceptions import ValidationError >>> str(ValidationError('so and so')) "[u'so and so']" >>> str(Exception('so and so')) 'so and so' How do I convert a ValidationError to a str for composing a human readable message? Even if

Re: Customizing error message in ModelForm

2011-04-15 Thread het.oosten
Yes indeed! Thank you very much for your help. Rob -- 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, send email to

Re: Customizing error message in ModelForm

2011-04-15 Thread Martin Pajuste
This should do the trick: class PrijsvraagForm(ModelForm): mail = forms.EmailField(error_messages={'required':'Vul aub een geldig Email adres in', 'invalid': 'Het email adres is niet geldig'}) class Meta: model = Prijsvraag def clean_code(self):

Re: Customizing error message in ModelForm

2011-04-15 Thread het.oosten
@Martin Thank you for your reply. I tried to do this, but I still get the default error message (the custom error from the code field works as it should): from django.db import models from django.forms import ModelForm from django import forms class Prijsvraag(models.Model): naam

Re: Customizing error message in ModelForm

2011-04-15 Thread Martin Pajuste
Error messages in ModelForms work perfectly fine. class PersonForm(forms.ModelForm): first_name = forms.CharField(error_messages={'required': 'Please enter your first name!'}) class Meta: model = Person http://docs.djangoproject.com/en/dev/ref/forms/fields/#error-messages --

Customizing error message in ModelForm

2011-04-15 Thread het.oosten
I want to show a custom error message in a Modelform. With a normal form I can add an error message like this: error_messages={'required': 'Vul aub een geldig Email adres in', 'invalid': 'Het email adres is niet geldig'} With a ModelForm this won't work. Is there a way to add a custom error

Re: English translation for error message?

2010-12-22 Thread Nick Serra
ython2.7/site-packages/django/db/model > > s/base.py", > > line 48, in __new__ > >     kwargs = {"app_label": model_module.__name__.split('.')[-2]} > > IndexError: list index out of range > > > What is going on in this error message? > > Th

Re: English translation for error message?

2010-12-21 Thread Bill Freeman
s.Model): > File > "/tools/python/2.7/Linux_x86_64/lib/python2.7/site-packages/django/db/models/base.py", > line 48, in __new__ > kwargs = {"app_label": model_module.__name__.split('.')[-2]} > IndexError: list index out of range > >>> > > What

English translation for error message?

2010-12-21 Thread Jonathan Hayward
pp_label": model_module.__name__.split('.')[-2]} IndexError: list index out of range >>> What is going on in this error message? It occurred after I went through and added docstrings, __str__(), and __unicode__() methods; I get the same error, referring to the same class, when I go t

Re: Django is not work Error :Message

2010-06-07 Thread Dmitry Dulepov
Hi! It gices you a hint: Jagdeep Singh Malhi wrote: > More information about this error may be available in the server error > log. Please, check the web server error log. You will see errors there. Sometimes you can see them in the browser if you set DEBUG = True in your settings.py. --

Django is not work Error :Message

2010-06-07 Thread Jagdeep Singh Malhi
This the Error message : Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmas...@localhost and inform them of the time the error occurred, and anything you might have done

Re: field specific error message

2010-03-12 Thread Daniel Roseman
On Mar 12, 8:09 pm, Amit Sethi wrote: > How do you do field specific messages ... like for  a Telephone Number , if > all characters are not digit send > message (no invalid )  . I have tried raising forms.ValidationError like > specified here

field specific error message

2010-03-12 Thread Amit Sethi
How do you do field specific messages ... like for a Telephone Number , if all characters are not digit send message (no invalid ) . I have tried raising forms.ValidationError like specified here (http://www.djangosnippets.org/snippets/337/) I have also tried changing forms.Form._errors ... it

Re: Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
Cool thanks, that was it. On Sat, Jan 16, 2010 at 11:55 AM, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Jan 16, 2010 at 11:49 AM, Andrew Bialecki < > andrew.biale...@gmail.com> wrote: > >> I'm in debug mode and the error message I'm getting sounds right but

Re: Error message has the wrong file path

2010-01-16 Thread Karen Tracey
On Sat, Jan 16, 2010 at 11:49 AM, Andrew Bialecki <andrew.biale...@gmail.com > wrote: > I'm in debug mode and the error message I'm getting sounds right but > the file paths are wrong. For instance, I know the module that's > failing is in /foo/bar/module.py, but it says the

Error message has the wrong file path

2010-01-16 Thread Andrew Bialecki
I'm in debug mode and the error message I'm getting sounds right but the file paths are wrong. For instance, I know the module that's failing is in /foo/bar/module.py, but it says the error occurred in the module /baz/module.py which definitely no longer exists. The module used to located

Re: How to display Error Message

2010-01-05 Thread 邓超
y on the > browser the error message gotten from the database when one enters invalid > data into the database. > > Many Thanks > > Isoscale > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To po

How to display Error Message

2010-01-05 Thread Geobase Isoscale
Hi all, I have a Django extension that enables me to call predefined PostgreSQL functions from the database. I would like to know how to display on the browser the error message gotten from the database when one enters invalid data into the database. Many Thanks Isoscale -- You received

Re: Error message

2009-12-18 Thread rebus_
2009/12/18 reactosguy : > I get this message every time I go on http://localhost:8000/ with the > Django server running: > > Traceback (most recent call last): > >  File "C:\Python26\lib\site-packages\django\core\servers > \basehttp.py", line 279, in run >    self.result =

Re: Error message

2009-12-17 Thread Andres Vargas - zodman
its because you set DEBUG=False and on your templates dir not exist the file 500.html On Thu, Dec 17, 2009 at 7:34 PM, reactosguy wrote: > I get this message every time I go on http://localhost:8000/ with the > Django server running: > > Traceback (most recent call

  1   2   >