Re: ValueError: invalid literal for int() with base 10: '127.0.0.1:3306'

2022-11-14 Thread 'Kasper Laudrup' via Django users
references. Kindly help me to sort out this error. Error:     kwargs["port"] = int(settings_dict["PORT"])                      ^^^^^^ ValueError: invalid literal for int() with base 10: '127.0.0.1:3306' As the error message clearly states, the string '12

Getting ValueError: Field 'id' expected a number but got 'favicon.ico'

2022-06-01 Thread Rishabh Singh
Hi Guys , I have posted the problem I am facing on StackOverflow. Please help me I am a beginner at Django. The link is below: https://stackoverflow.com/questions/72458041/getting-valueerror-field-id-expected-a-number-but-got-favicon-ico Thanks, Rishabh -- You received this message because

Re: ValueError: Field 'id' expected a number but got ' '.

2022-03-03 Thread Kasper Laudrup
On 03/03/2022 04.04, Suresh_Chilukuri wrote: Hi All,please find below images for the "ValueError: Field 'id' expected a number but got ' ' " as the error. I am expecting quick response from you guys You cannot expect a quick response or even a response at all if you cannot b

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
into admin.pyMike--(Unsigned mail from my phone) Original message From: David Nugent Date: 2/10/21 12:31 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Strange ValueError in Safari on iOS I have some doubt the admin css is related.  The css file should provide

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
- or at least without error - in other browsers.Mike--(Unsigned mail from my phone) Original message From: David Nugent Date: 2/10/21 12:31 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Strange ValueError in Safari on iOS I have some doubt the admin css is related

Re: Strange ValueError in Safari on iOS

2021-10-01 Thread David Nugent
Firefox or Google Chrome so I'm > guessing it is something to do with Apple and treatment of trailing > slashes. > > my setting is APPEND_SLASH = True which was set after much trial and > error long ago so I'm not keen to try and remember all that experiment > with it again. >

Strange ValueError in Safari on iOS

2021-10-01 Thread Mike Dewhirst
True which was set after much trial and error long ago so I'm not keen to try and remember all that experiment with it again. Thanks for any help Cheers Mike ValueError at /admin/chemical/chemical/29/img/icon-yes.svg/change/ Field 'id' expected a number but got '29/img/icon-yes.svg'. Request M

Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread SKYLINE TV
kindly add the screenshort to enable me see your model On Thursday, July 1, 2021 at 10:58:40 PM UTC+1 abeer.e...@gmail.com wrote: > Hi Waqar, > > Could you add your models.py and a screenshot or copy of the error you are > observing? > > Thanks! > > On Thu, Jul 1, 2021 at 5:31 PM waqar khan

Re: ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread Abeer Eltanawy
Hi Waqar, Could you add your models.py and a screenshot or copy of the error you are observing? Thanks! On Thu, Jul 1, 2021 at 5:31 PM waqar khan wrote: > I have create model class and run success fully > But Issues add field like stufees , > stufess=models.FloatField(), > right value default

ValueError: Field 'stufees' expected a number but got 'None'.

2021-07-01 Thread waqar khan
I have create model class and run success fully But Issues add field like stufees , stufess=models.FloatField(), right value default , as soon as reply me -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: ValueError

2021-06-08 Thread Lalit Suthar
https://stackoverflow.com/questions/26829435/collectstatic-command-fails-when-whitenoise-is-enabled On Wed, 9 Jun 2021 at 01:55, Lloyd Mawira wrote: > I am getting this error after running python manage.py collectstatic. > Someone help please. > > ValueError: The file 'css/webfon

ValueError

2021-06-08 Thread Lloyd Mawira
I am getting this error after running python manage.py collectstatic. Someone help please. ValueError: The file 'css/webfonts/fa-brands-400.eot' could not be found with . -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-13 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I

ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Hello, This error is raised when I run a migration allowing me to fill in the bd. To try to resolve the error, I formatted the User object as a *SimpleLazyObject *because I found that this is the type of object returned by the *self.request.user* instance in a view. Here is the model from which I

Re: ValueError: Cannot assign "": "Restraint.user" must be a "User" instance.

2020-12-12 Thread Anselme Gildas Tchassem Boutchouang
Thank you in advance for your solution Le sam. 12 déc. 2020 à 07:51, Anselme Gildas Tchassem Boutchouang < tbago...@gmail.com> a écrit : > Hello, > This error is raised when I run a migration allowing me to fill in the bd. > To try to resolve the error, I formatted the User object as a >

ValueError: attempted relative import beyond top-level package

2020-10-17 Thread Abdu-H
Hello, i am getting a value error (from ..accounts.models import User. ValueError: attempted relative import beyond top-level package) while trying to import my custom user model, i have read through some post suggesting i create a root folder for my project, I would like to know

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-12 Thread dum dum
Another problem now.. I don't know why, in local localhost:8000/sitemap.xml will generate sitemap.xml. But on heroku, domain/sitemap.xml will error h13. Any suggestions? Thanks. On Wed, Sep 9, 2020 at 11:31 AM hans alexander wrote: > Thanks guys.. Already solved it. > I guess the main reason

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Thanks guys.. Already solved it. I guess the main reason of the problem is that I'm using Pycharm Community Edition. So the alert error not accurate. Anyway I tried to py manage.py with some alerts, and worked. for example: [image: image.png] I left it like that. And sitemap still works. But now

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
I did this long time ago and here is what i did... in settings.py SITE_ID = 1 # Application definition INSTALLED_APPS = [ # ... 'django.contrib.sites', 'django.contrib.sitemaps', ] run migration i.e. >>> py manage.py migrateOR python manage.py migrate

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
I followed a tutorial for creating django sitemap, but still got problems along the way. I've seen some videos, but didn't work. Do you have any references for easy way creating django sitemap for blog posts? Sure it would help. Thanks On Wed, Sep 9, 2020 at 12:02 AM coolguy wrote: > Not

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread coolguy
Not sure why you are importing this into your main project urls.py but its very straight forward from blog.sitemaps import BlogPostsSitemap question... are you trying to map the application url here? then you should use path('/' , Include("blog.urls")) On Tuesday, September 8, 2020 at

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Sorry, point no 1 needs to be revised.. 1. In urls.py, I want to import BlogPostsSitemap -- 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

I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
an error "ValueError: attempted relative import beyond top-level package" when I ran the server. Is anyone here got the solution? Or maybe some references how to create sitemap on django? Thanks. -- You received this message because you are subscribed to the Google Groups "Djan

Re: ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread RANGA BHARATH JINKA
a button on the detailed > view, when clicked i want it to take some of the information on the > detailed view and save it in the* rent *model… But i am getting a > ValueError (Cannot query "testuser1": Must be "Listing" instance). But i > also need to store the driv

ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread Abdu-H
available and a detailView for each car, i have a button on the detailed view, when clicked i want it to take some of the information on the detailed view and save it in the* rent *model… But i am getting a ValueError (Cannot query "testuser1": Must be "Listing" instance). But i

ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread Abdulhameed Giwa
and a detailView for each car, i have a button on the detailed view, when clicked i want it to take some of the information on the detailed view and save it in the* rent *model… But i am getting a ValueError (Cannot query "testuser1": Must be "Listing" instance). But i also need

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
css >> folders have to be put into the root directory? Or would a path in the >> settings need to be altered to allow the static folder to actually register >> with the system? >> >> On Mon, Aug 31, 2020 at 1:11 AM RANGA BHARATH JINKA < >> bharathjink...

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
bharathjink...@gmail.com> wrote: > >> Hi, >> >> Please check this. >> >> https://stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico >> >> On Mon, Aug 31, 2020 at 9:28 AM Lightning Bit

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-31 Thread King Niko
this. > > https://stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico > > On Mon, Aug 31, 2020 at 9:28 AM Lightning Bit < > thelegendofearthretu...@gmail.com> wrote: > >> Hello all, >> >> Does anyone know how t

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-30 Thread RANGA BHARATH JINKA
Hi, Please check this. https://stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico On Mon, Aug 31, 2020 at 9:28 AM Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > Hello all, > > Does anyone know how to add a

raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-30 Thread Lightning Bit
Hello all, Does anyone know how to add a manifest entry for a staticfile? I have used: *> python manage.py collectstatic --noinput * >From this I got the "*staticfiles"* folder. However, when I perform a logging on the website, this 505 error appears: *> raise

re_path(r'^admin/filebrowser/', fbsite.urls) - ValueError

2020-05-07 Thread Mike Dewhirst
Can anyone help with this please?   File "/var/www/train/train/urls.py", line 49, in     re_path(r'^admin/filebrowser/', fbsite.urls),   File "/usr/local/lib/python3.6/dist-packages/django/urls/conf.py", line 61, in _path     urlconf_module, app_name, namespace = view Va

Re: ValueError: The database backend does not accept 0 as a value for AutoField.

2020-04-06 Thread Simon Charette
django/db/models/sql/compiler.py" >>> , line 1335, in >>> for obj in self.query.objs >>> File >>> "/home/lenovo/.local/lib/python3.7/site-packages/django/db/models/sql/compiler.py" >>> , line 1334, in >>> [self.prepare

Re: ValueError: The database backend does not accept 0 as a value for AutoField.

2020-04-06 Thread Hamza Mirchi
ile >> "/home/lenovo/.local/lib/python3.7/site-packages/django/db/models/sql/compiler.py" >> , line 1275, in prepare_value >> value = field.get_db_prep_save(value, connection=self.connection) >> File >> "/home/lenovo/.local/lib/python3.7/site-packages/django/db/models

Re: ValueError: The database backend does not accept 0 as a value for AutoField.

2020-04-06 Thread Simon Charette
l/lib/python3.7/site-packages/django/db/models/fields/__init__.py" > , line 821, in get_db_prep_save > return self.get_db_prep_value(value, connection=connection, prepared= > False) > File > "/home/lenovo/.local/lib/python3.7/site-packages/django/db/models/fields/_

Re: ValueError: set_wakeup_fd only works in main thread on Apache2.4.41 + Python 3.8.1 + Django 3.0.2 + MySQL 8.0.19

2020-02-23 Thread Siddharth Agarwal
> File "c:\python38\lib\site-packages\django\utils\asyncio.py", line 19, >>> in inner >>> event_loop = asyncio.get_event_loop() >>> File "c:\python38\lib\asyncio\events.py", line 636, in get_event_loop >>> self.set_even

Re: ValueError: set_wakeup_fd only works in main thread on Apache2.4.41 + Python 3.8.1 + Django 3.0.2 + MySQL 8.0.19

2020-02-23 Thread Siddharth Agarwal
in get_event_loop >> self.set_event_loop(self.new_event_loop()) >> File "c:\python38\lib\asyncio\events.py", line 656, in new_event_loop >> return self._loop_factory() >> File "c:\python38\lib\asyncio\windows_events.py", line 310, i

Re: ValueError: set_wakeup_fd only works in main thread on Apache2.4.41 + Python 3.8.1 + Django 3.0.2 + MySQL 8.0.19

2020-02-22 Thread Jorge Gimeno
asyncio.get_event_loop() > File "c:\python38\lib\asyncio\events.py", line 636, in get_event_loop > self.set_event_loop(self.new_event_loop()) > File "c:\python38\lib\asyncio\events.py", line 656, in new_event_loop > return self._loop_factory()

Re: ValueError: The QuerySet value for an exact lookup must be limited to one result using slicing

2020-02-06 Thread Kasper Laudrup
On 06/02/2020 13.02, shubham joshi wrote: https://github.com/shubham1507/TiffinApp/tree/development https://stackoverflow.com/help/how-to-ask -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

ValueError: The QuerySet value for an exact lookup must be limited to one result using slicing

2020-02-06 Thread shubham joshi
https://github.com/shubham1507/TiffinApp/tree/development -- 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

Re: Django ValueError at: Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance."

2020-01-01 Thread Muhammad Tariq
s model located. > > > > > > > On Mon, Dec 30, 2019, 19:31 Muhammad Tariq > wrote: > >> I am new to Django facing this error while saving data into DB: >> >> "ValueError at /breedingRecApp/pairing >> Cannot assign "": >> "

Re: Django ValueError at: Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance."

2019-12-31 Thread Integr@te System
Hi Issuer, As error warning, we don't see any male_mutation in Mutation model when Pair.male_mutation reference to. As well Species model located. On Mon, Dec 30, 2019, 19:31 Muhammad Tariq wrote: > I am new to Django facing this error while saving data into DB: > > &q

Django ValueError at: Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance."

2019-12-30 Thread Muhammad Tariq
I am new to Django facing this error while saving data into DB: "ValueError at /breedingRecApp/pairing Cannot assign "": "Pair.male_mutation" must be a "Mutation" instance." I've 4 foreign keys in Pair model each with specific reason/purposes. when

ValueError at /products/

2019-08-01 Thread Olawumi Fadero
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/products/ Django Version: 2.1 Python Version: 3.7.4 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: ValueError

2019-07-10 Thread amin ghaemi
; file). > but, it shows error like this... > > The view Naturalgreen.views.index didn't return an HttpResponse object. It > returned None instead. > > Request Method: GET > Request URL: http://127.0.0.1:8000/ > Django Version: 2.0 > Exception Type: ValueError > Exception Value:

Re: ValueError

2019-07-10 Thread Jani Tiainen
rom the template (HTML > file). > but, it shows error like this... > > The view Naturalgreen.views.index didn't return an HttpResponse object. It > returned None instead. > > Request Method: GET > Request URL: http://127.0.0.1:8000/ > Django Version: 2.0 > Exception T

ValueError

2019-07-10 Thread Desh Deepak
Type: ValueError Exception Value: Python Version: 3.7.3 Django Version: 2.0 (views.py) from django.shortcuts import render from django.http import HttpResponse from Naturalgreen.models import signin # Create your views here. def index(request): if request.method == 'POST': if request.POST.get

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
, 2019, 1:38 PM anchal agarwal, > wrote: > >> I recently deleted one of my app from my website directory. For deleting >> app I removed that app name from settings.py also I removed it's folder >> I then applied python manage.py migrate >> But now i am unable to access my

Re: ValueError at /admin/

2019-06-16 Thread Sai Praneeth
manage.py migrate > But now i am unable to access my admin, it's giving an error > > ValueError: invalid literal for int() with base 10: 'admin' > > Internal Server Error: /favicon.ico/ > Any help would be greatly appreciated > > > -- > You received this message because

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
y. For deleting >> app I removed that app name from settings.py also I removed it's folder >> I then applied python manage.py migrate >> But now i am unable to access my admin, it's giving an error >> >> ValueError: invalid literal for int() with base 10: 'admin' >&g

Re: ValueError at /admin/

2019-06-16 Thread Dave Edwards
y also I removed it's folder > I then applied python manage.py migrate > But now i am unable to access my admin, it's giving an error > > ValueError: invalid literal for int() with base 10: 'admin' > > Internal Server Error: /favicon.ico/ > Any help would be greatly apprecia

Re: ValueError at /admin/

2019-06-16 Thread anchal agarwal
n, 2019, 1:38 PM anchal agarwal, > wrote: > >> I recently deleted one of my app from my website directory. For deleting >> app I removed that app name from settings.py also I removed it's folder >> I then applied python manage.py migrate >> But now i am unable to access my

Re: ValueError at /admin/

2019-06-16 Thread Karan Mittal
emoved it's folder > I then applied python manage.py migrate > But now i am unable to access my admin, it's giving an error > > ValueError: invalid literal for int() with base 10: 'admin' > > Internal Server Error: /favicon.ico/ > Any help would be greatly appreciated > >

ValueError at /admin/

2019-06-16 Thread anchal agarwal
I recently deleted one of my app from my website directory. For deleting app I removed that app name from settings.py also I removed it's folder I then applied python manage.py migrate But now i am unable to access my admin, it's giving an error ValueError: invalid literal for int() with base 10

Re: ValueError: attempted relative import beyond top-level package

2019-03-02 Thread Phako Perez
I guess you miss the __init__.py file in project1 directory Sent from my iPhone > On Mar 2, 2019, at 3:25 PM, Bulgarian seller wrote: > > from ..appTwo import views > urlpatterns = [ > path('',views.index), > path('admin/', admin.site.urls), > ] > > >

Re: ValueError: attempted relative import beyond top-level package

2019-03-02 Thread '李骏' via Django users
Settings.py: “../apptwo” ==> “appTwo.apps.apptwoconfig”, 发自我的 空间传送门 > 在 2019年3月3日,上午5:25,Bulgarian seller 写道: > > from ..appTwo import views > urlpatterns = [ > path('',views.index), > path('admin/', admin.site.urls), > ] > > > ValueError: attempted

ValueError: attempted relative import beyond top-level package

2019-03-02 Thread Bulgarian seller
from ..appTwo import views urlpatterns = [ path('',views.index), path('admin/', admin.site.urls), ] ValueError: attempted relative import beyond top-level package How to fix it in django? I have this in AppTwo.views def index(request): return HttpResponse("My Second Pr

Re: ValueError at /news/ Value: None must be instance of Model:

2019-01-28 Thread mahesh boini
nday, 19 August 2018 19:32:49 UTC+5:30, Sagar wrote: >> >> Hi, >> I'm trying to create embedded documents in mongodb using django. I'm >> facing this error when I tried to insert a post in database. >> "ValueError at /post/Value: None must be instance of Model: >

Re: ValueError at /news/ Value: None must be instance of Model:

2019-01-26 Thread team . alphav3
error when I tried to insert a post in database. > "ValueError at /post/Value: None must be instance of Model: 'django.db.models.base.Model'>" > Here is my code. > models.py > from djongo import models > > > # Schema for comments collection which include i

Re: ValueError at /news/ Value: None must be instance of Model:

2018-10-01 Thread ganesh c
Hi Sagar, I am facing the similar issue while adding User model as embeddedmodel in a custom profile model. Please let me know do you get any solutions for your issue, Thanks, Ganesh On Wednesday, 22 August 2018 11:58:29 UTC+5:30, Sagar wrote: > > Hi Mikhailo > I think the problem is with

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-22 Thread Sagar
Hi Mikhailo I think the problem is with views. Because when I run the API, it is giving me the default root view that django provide for API. When I entered the values in form and then when i post the data, at that time I'm getting this error. In serializers When I make a small change It is

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-20 Thread Mikhailo Keda
rest_framework_mongoengine was updated 1 year ago, according to djongo docs they have integration with Django Rest Framework, try to use Django Rest Framework instead of rest_framework_mongoengine. And you need debug the error. понеділок, 20 серпня 2018 р. 14:36:15 UTC+3 користувач Sagar

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-20 Thread Jason
> > We want to use NoSQL database insted of SQL database > Is your data relational, and are you going to be doing alot of joins? If so, using mongo will be a pain in your application for performance. I really hope you have a solid technical reason why to use mongo rather than "ITS

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-20 Thread Sagar
Hi Mikhailo Yes you are right, but I didn't used django-nonrel or djangotoolbox. Those were totally outdated. I have used djongo which is updated as far as I know. About MongoDB, I'm working on project in which we used MongoDB. We want to use NoSQL database insted of SQL database. Did you work

Re: ValueError at /news/ Value: None must be instance of Model:

2018-08-20 Thread Mikhailo Keda
Not sure what you are using but all packages for Django + MongoDB are outdated. Why do not use PostgreSQL instead of MongoDB? -- 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,

ValueError at /news/ Value: None must be instance of Model:

2018-08-19 Thread Sagar
Hi, I'm trying to create embedded documents in mongodb using django. I'm facing this error when I tried to insert a post in database. "ValueError at /post/Value: None must be instance of Model: " Here is my code. models.py from djongo import models # Schema for comments collection whi

Re: ValueError at /api/list/ invalid literal for int() with base 10: '35/like'

2018-08-10 Thread Andréas Kühne
Hi, See my comments below. Regards, Andréas 2018-08-10 5:29 GMT+02:00 mounikesh mintu : > hey guys when i tried to like a post in drf i have got in to an error > > models.py > > class status(models.Model): > user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE, >

ValueError at /api/list/ invalid literal for int() with base 10: '35/like'

2018-08-09 Thread mounikesh mintu
hey guys when i tried to like a post in drf i have got in to an error models.py class status(models.Model): user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE, null=False) # user=models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Melvyn Sopacua
On zondag 8 juli 2018 08:40:03 CEST darkblakh...@gmail.com wrote: > Traceback (most recent call last): > File "/root/Desktop/website/movies/views.py", line 4, in > from .models import mdb > ValueError: Attempted relative import in non-package You should really c

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread mottaz hejaze
make sure that __init__.py file exists and not deleted -- 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

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Swati Pushp
en i try to import class from model.py give me error > > from .models import mdb > output: > > Traceback (most recent call last): > File "/root/Desktop/website/movies/views.py", line 4, in > from .models import mdb > ValueError: Attempted relative import in non-pa

ValueError: Attempted relative import in non-package

2018-07-08 Thread darkblakhood
/root/Desktop/website/movies/views.py", line 4, in from .models import mdb ValueError: Attempted relative import in non-package any ideas ? thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance.

2018-06-24 Thread Saloni Kalra
Alright! Thanks much! On Sun, 24 Jun 2018, 6:56 pm Melvyn Sopacua, wrote: > On zaterdag 23 juni 2018 21:10:27 CEST Saloni Kalra wrote: > > Thank you for your reply. I removes all the migrations and dropped the > > database. Now when I try to make migrations i get the following error in > my > >

Re: ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance.

2018-06-24 Thread Melvyn Sopacua
On zaterdag 23 juni 2018 21:10:27 CEST Saloni Kalra wrote: > Thank you for your reply. I removes all the migrations and dropped the > database. Now when I try to make migrations i get the following error in my > terminal. > Thanks and regards, > Saloni > > *Error:* > accounts.User.user_ptr:

Re: ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance.

2018-06-23 Thread Saloni Kalra
> This is a feedback application for teachers by the students. I have been > > > constntly getting the following error: > > > ValueError at /feedback/by/feedback/new > > > Cannot assign "": "Feedback.user" must be a "User" > instance. &g

Re: ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance.

2018-06-23 Thread Melvyn Sopacua
On zaterdag 23 juni 2018 10:52:09 CEST Saloni Kalra wrote: > https://github.com/salonikalra/feedback > This is a feedback application for teachers by the students. I have been > constntly getting the following error: > ValueError at /feedback/by/feedback/new > Cannot assign &qu

ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance.

2018-06-23 Thread Saloni Kalra
https://github.com/salonikalra/feedback This is a feedback application for teachers by the students. I have been constntly getting the following error: ValueError at /feedback/by/feedback/new Cannot assign "": "Feedback.user" must be a "User" instance. Please h

Re: ValueError at /polls/1/vote/

2018-05-29 Thread Melvyn Sopacua
On dinsdag 29 mei 2018 14:07:59 CEST Caleb Bryson wrote: > def vote(request, question_id): > ... # same as above, no changes needed. You fell into the cut-and-paste-without-reading trap. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Django

Re: ValueError at /polls/1/vote/

2018-05-29 Thread Caleb Bryson
How would I apply a return for my view here? from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, render from django.urls import reverse from django.views import generic from .models import Choice, Question class IndexView(generic.ListView):

Re: ValueError at /polls/1/vote/

2018-05-29 Thread Julio Biason
View require that you return an HttpResponse object. Your function does not (it probably even lacks a "return"). You need to return the response back in the view. On Tue, May 29, 2018 at 8:48 AM, Caleb Bryson wrote: > Hey i am getting this error now can anyone help me fix this? and what code >

Re: ValueError source code string cannot contain null bytes

2018-05-12 Thread Arif Arman
Hi I am having the same error. Did you manage to solve it? On Thursday, December 7, 2017 at 10:30:16 AM UTC+6, Rajeshwaran wrote: > > Hi All, > > I am facing this "ValueError: source code string cannot contain null > bytes" error when i create a sqlite3 databas

ValueError: source code string cannot contain null bytes

2017-12-06 Thread Rajeshwaran
Hi All, I am facing this "ValueError: source code string cannot contain null bytes" error when ever i create a splite3 database and use it. Below are the steps i follow. 1. Create the database using db browser. 2. Run python "manage.py inspectdb > models.py"

ValueError source code string cannot contain null bytes

2017-12-06 Thread Rajeshwaran
Hi All, I am facing this "ValueError: source code string cannot contain null bytes" error when i create a sqlite3 database and run the application. Steps that i do : 1. Create database using db browser for SQLITE3 2. Create model by running "python manage.py inspectdb &g

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
ompany field. The entire error is *"invalid literal for int() > with base 10: 'NewCor'"* NewCor is a company in the contacts table. Thanks > > > > On Wednesday, July 26, 2017 at 1:27:28 PM UTC-6, Tim Chase wrote: >> >> On 2017-07-26 11:52, Alexander Joseph wrote: >&

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
le. Thanks On Wednesday, July 26, 2017 at 1:27:28 PM UTC-6, Tim Chase wrote: > > On 2017-07-26 11:52, Alexander Joseph wrote: > > "*ValueError: invalid literal for int() with base 10:*" after I > > made a field in my models.py a ForeignKey. Below is my models

Re: ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Tim Chase
On 2017-07-26 11:52, Alexander Joseph wrote: > "*ValueError: invalid literal for int() with base 10:*" after I > made a field in my models.py a ForeignKey. Below is my models.py The problem lies in this line: > new_invoice_num = int(last_invoice_num) +

ValueError: invalid literal for int() with base 10:

2017-07-26 Thread Alexander Joseph
Hello, I came across this error: "*ValueError: invalid literal for int() with base 10:*" after I made a field in my models.py a ForeignKey. Below is my models.py from django.conf import settings from django.db import models from django.core.urlresolvers import reverse from django.ut

ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
pythonic. Best regards Ogi On 17.07.2017 16:08, Michal Petrucha wrote: On Mon, Jul 17, 2017 at 03:46:30PM +0200, Ogi Vranesic wrote: Hi I have used some templates in older django versions. But now in django 1.11 using the same templates, the error: ValueError: Need 2 values to unpack in for loop

Re: ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Michal Petrucha
On Mon, Jul 17, 2017 at 03:46:30PM +0200, Ogi Vranesic wrote: > Hi > > I have used some templates in older django versions. > But now in django 1.11 using the same templates, the error: > > ValueError: Need 2 values to unpack in for loop; got 3. > > will be rais

ValueError: Need 2 values to unpack in for loop; got 3 (actually num_loopvars = 2 and len_item = 3)

2017-07-17 Thread Ogi Vranesic
Hi I have used some templates in older django versions. But now in django 1.11 using the same templates, the error: ValueError: Need 2 values to unpack in for loop; got 3. will be raised on line 207 in module django.template.defaulttags by the method render of class ForNode Actually is by me

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
On 07/08/2016 04:58 PM, James Schneider wrote: > The polls,detail.html is: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }} > {% endif %} > > http://question.id> %}" method="post"> > {% csrf_token %} > > {% for choice in question.choice_set.all %} >

Re: ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread James Schneider
> The polls,detail.html is: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }} > {% endif %} > > > {% csrf_token %} > > {% for choice in question.choice_set.all %} > id="choice{{forloop.counter }}" > value"{{ choice.id }}" />

ValueError: invalid literal for int() with base 10: 'on'

2016-07-08 Thread Gary Roach
"/opt/python-virtual-environments/py3.5dj1.9.7/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 976, in get_prep_value return int(value) ValueError: invalid literal for int() with base 10: 'on' [07/Jul/2016 16:21:41] "POST /polls/1/vote/ HTTP/1.1" 5

ValueError: cannot reindex from a duplicate axis

2016-04-23 Thread Chen
http://stackoverflow.com/questions/36809762/valueerror-cannot-reindex-from-a-duplicate-axis-while-using-pivot-table -- 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, sen

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

2016-04-13 Thread Chen
_nonzero__ .format(self.__class__.__name__)) ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). The value in dataframe is all in integers. It also have repetitive values of index. Attached : CSV data -- You received this message b

ValueError: Related model 'cms.Placeholder' cannot be resolved

2015-11-22 Thread Jon Ribbens
I changed a field from TextField to PlaceholderField (from Django-CMS) and now I get the above error when running 'migrate'. I can't find a way to fix this, nor can I undo it as there appears to be no way to remove migrations. I am using: Python 3.4.3 Django 1.8.5 Django-CMS 3.1.3 Does

Re: ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-21 Thread Mike Dewhirst
env\xxfx3\lib\site-packages\django\db\models\query.py", line 348, in create    obj.save(force_insert=True, using=self.db)   File "C:\Users\mike\env\xxfx3\ssds\substance\models\wrappedsds.py", line 60, in save    super(Wrapped_Sds, self).save(*args, **kwargs

Re: ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-20 Thread Tim Graham
ke\env\xxfx3\lib\site-packages\django\db\models\manager.py", > line 127, in manager_method > return getattr(self.get_queryset(), name)(*args, **kwargs) >File > "C:\Users\mike\env\xxfx3\lib\site-packages\django\db\models\query.py", > line 407, in get_or_cr

Re: ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-20 Thread Mike Dewhirst
\mike\env\xxfx3\lib\site-packages\django\db\models\query.py", line 348, in create obj.save(force_insert=True, using=self.db) File "C:\Users\mike\env\xxfx3\ssds\substance\models\wrappedsds.py", line 60, in save super(Wrapped_Sds, self).save(*args, **kwargs)

Re: ValueError: save() prohibited to prevent data loss due to unsaved related object

2015-10-18 Thread Mike Dewhirst
On 18/10/2015 6:28 AM, Tim Graham wrote: Do you have code that worked before (didn't result in data loss) but doesn't work now? If so, it could be a bug in Django. Yes indeed. It is all in my repo. I'll go back to 1.7.x and rerun the tests and report back. Thanks Mike On Friday, October

  1   2   3   >