Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-21 Thread Leslie Taffe
Hey so I solved that problem by deleting all the migrations then migrating again to apply changes. now I just need to figure out how to configure the rest of the app to my needs. Do any of you know any up to date repos I could take a look at? On Saturday, 12 November 2022 at 15:31:31 UTC-8 ja

Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-12 Thread James
I fixed something similar once by having the model that was causing the problem be set to abstract in its class meta. O you need to "makemigrations user" if you've opened up the usermodel and changed a lot of stuff (also had that problem before) Hope these simple solutions work! On Friday,

Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-11 Thread Leslie Taffe
I'm trying to get to know django-oscar and this is what happens when i try to make migrations : Traceback (most recent call last): File "C:\Users\Leslie\Desktop\GrandmarketV3\Grandmarket\manage.py", line 22, in main() File "C:\Users\Leslie\Desktop\GrandmarketV3\Grandmarket\manage.py", l

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Joalbert Palacios
In debug mode looks like, create a new app using your idea about a possible mistake in setting without django-storages works perfectly but with this one crash with the exception below. Trying to fix it but does not look clear which line in django-storages has the issue. SuspiciousFileOperation

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Jacob Greene
Hmm that can't be right. Can you set a breakpoint on the line where the exception is raised: SuspiciousFileOperation("Detected. When you set a breakpoint there, inspect the value of dir_name. The ".parts" method breaks the file path up into a tuple, there shouldn'

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-04 Thread Joalbert Palacios
Hi, dir_name in the exception is '/home/joalbert/Documents/Remesas App/RemesasServer/media/payments/images/filename.jpg' The setting for media is: Settings.py: MEDIA_ROOT = "./media/"#os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' I try also

Re: Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Jacob Greene
This is obviously some type of security feature to prevent someone from climbing up a directory. You have ".." in your string for the file path somewhere. What is the value of "dir_name" when the exception is raised? It should be in the traceback somewhere. Should help na

Django Exception "Detected path traversal attempt in" for save a model with filefield

2022-02-03 Thread Joalbert Palacios
Hi group, I have been updating my django version so as to cover the last security patch with django version 3.2 (current version 3.2.12). Unfortunately, after this update the following exception occurs during execution of testing: Detected path traversal attempt in '/home/joalbert/Docu

migrate exception if multiple databases migrated in a specific order

2022-02-02 Thread Robert Leach
I just added a second database to our project and was questioning my sanity when I kept getting the exception below in the remote github action tests only (not locally). I eventually noticed that I was doing the migrations in the reverse order locally. Once I noticed that, I was able to both

Re: Should Query.add_ordering() raise FieldError exception?

2022-01-27 Thread Камиль Талипов
pls, ignore this and next duplicate mail i already got answer четверг, 27 января 2022 г. в 17:02:41 UTC+3, Камиль Талипов: > The *add_ordering()* method has a call to the *names_to_path()* function > with the following comment: > > # names_to_path() validates the lookup. A descriptive > # Fi

Should Query.add_ordering() raise FieldError exception?

2022-01-27 Thread Камиль Талипов
The *add_ordering()* method has a call to the *names_to_path()* function with the following comment: # names_to_path() validates the lookup. A descriptive # FieldError will be raise if it's not. self.names_to_path(item.split(LOOKUP_SEP), self.model._meta) (django.db.models.sql.query: ~1989 line)

Re: /accounts/password/reset/ Exception Value: No module named 'django.shop'

2021-08-22 Thread Kasper Laudrup
https://www.propublica.org/nerds/how-to-ask-programming-questions -- 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 v

/accounts/password/reset/ Exception Value: No module named 'django.shop'

2021-08-22 Thread vijay chourey
_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 941, in _find_and_load_unlocked File "", line 219, in _c

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
ib/python2.7/site-packages/django/contrib/auth/__init__.py" in >>> _get_user_session_key* >>> * 59. return >>> get_user_model()._meta.pk.to_python(request.session[SESSION_KEY])* >>> *File >>> "/usr/local/lib/python2.7/site-packages/django/contrib/sessi

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread Michał T . Lorenc
s/base.py" >> in __getitem__* >> * 48. return self._session[key]* >> *File >> "/usr/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py" >> in _get_session* >> * 181. self._session_cache = self.load()* &

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
27. return getattr(self.get_queryset(), name)(*args, > **kwargs)* > *File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" > in get* > * 328. num = len(clone)* > *File "/usr/local/lib/python2.7/site-packages/django/db/mode

Exception Value: relation "django_session" does not exist

2021-05-24 Thread Mic
uot; in iterator* * 238. results = compiler.execute_sql()* *File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql* * 840. cursor.execute(sql, params)* *File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.p

Re: runserver unsuccessfully without any exception or traceback

2021-03-17 Thread Ryan Nowakowski
On March 15, 2021 7:26:11 AM CDT, lilyfan195 wrote: > >however when I enter the http://127.0.0.1:8000 it showed page not >found, and the thing is whatever I clicked, the powershell remained the >same and didn't show any Exception traceback or something like that and >the

runserver unsuccessfully without any exception or traceback

2021-03-15 Thread lilyfan195
I clicked, the powershell remained the same and didn't show any Exception traceback or something like that and the pycharm didn'

Re: Exception Type: SuspiciousOperation

2021-01-01 Thread Vishesh Mangla
The error was related to data. The key wasn't in the data. On Fri, Jan 1, 2021 at 2:07 AM Vishesh Mangla wrote: > I deleted the db and ran the migrations again. > the actual error is this. https://dpaste.org/7vb3 > > On Friday, January 1, 2021 at 1:58:17 AM UTC+5:30 Vishesh Mangla wrote: > >>

Re: Exception Type: SuspiciousOperation

2020-12-31 Thread Vishesh Mangla
I deleted the db and ran the migrations again. the actual error is this. https://dpaste.org/7vb3 On Friday, January 1, 2021 at 1:58:17 AM UTC+5:30 Vishesh Mangla wrote: > Hi, I am facing this error and 'm stuck on it from quite a lot of time. > The error logs: https://dpaste.com/AVG628T9N > My

Exception Type: SuspiciousOperation

2020-12-31 Thread Vishesh Mangla
Hi, I am facing this error and 'm stuck on it from quite a lot of time. The error logs: https://dpaste.com/AVG628T9N My code: https://dpaste.org/dSMc I have used : https://pypi.org/project/django-postgres-extra/ Any help is appreciated, Thanks -- You received this message because you are subsc

Re: Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-30 Thread jay goldymae lamsen
tocken %} >>24 : >>25 : >>26 : > placeholder="Enter Username" name="username"> >> 27 : >>28 : >>29 : &

Re: Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-27 Thread Luciano Martins
cken %} >24 : >25 : >26 : placeholder="Enter Username" name="username"> >27 : >28 : >29 : >30 : >31 :

Exception Type: TemplateSyntaxError at /login/ Exception Value: Invalid block tag on line 23: 'csrf_tocken', expected 'endblock'. Did you forget to register or load this tag?

2020-11-26 Thread The Dream Travelers
: 26 : 27 : 28 : 29 : 30 : 31 : 32 : 33 : Traceback (most recent call last): File "C:\django-projects\venv\lib\site-packages\django\templa

Re: Exception

2020-11-05 Thread Kasper Laudrup
Hi Igbinyemi, I don't use Windows, so I don't have much experience here, but: ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine seems like you have some kind of "security" software installed that's interfering with network con

Re: Exception

2020-11-05 Thread Walter Randazzo
Great! Whats is the error message? El jue., 5 nov. 2020 12:46 p. m., Igbinyemi Adeboye Amos < adeboyeam...@gmail.com> escribió: > > Please am having error > I just change my database from the default to Mysql > And its now working perfectly but once the page is loaded it throws error > on the ter

Re: Exception

2020-11-05 Thread Igbinyemi Adeboye Amos
This is the content of the error below; Exception occurred during processing of request from ('127.0.0.1', 8435) Traceback (most recent call last): File "C:\Users\Igbinyemi Adeboye\AppData\Local\Programs\Python\Python39\lib\socketserver.py", line 650, in pr

Re: Exception

2020-11-05 Thread Igbinyemi Adeboye Amos
Okay, thanks will post the content right now. On Thu, Nov 5, 2020 at 8:37 PM Kasper Laudrup wrote: > Hi Igbinyemi > > On 05/11/2020 16.24, Igbinyemi Adeboye Amos wrote: > > > > Please am having error > > I just change my database from the default to Mysql > > And its now working perfectly but o

Re: Exception

2020-11-05 Thread Kasper Laudrup
Hi Igbinyemi On 05/11/2020 16.24, Igbinyemi Adeboye Amos wrote: Please am having error I just change my database from the default to Mysql And its now working perfectly but once the page is loaded it throws error on the terminal. The error thrown usually contains some information indicatin

Exception

2020-11-05 Thread Igbinyemi Adeboye Amos
Please am having error I just change my database from the default to Mysql And its now working perfectly but once the page is loaded it throws error on the terminal. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Backend exception after upgrade.

2020-09-25 Thread Kirill Maksimov
Hello guys. I'm using Python3.8 and Django2.2. After upgrade to django 2.2, I'm getting weird exception which happens only on ecs sever: *AttributeError partially initialized module 'django_redis.cache' has no attribute 'RedisCache' (most likely due to a circu

Re: Getting exception while importing data though Django Admin

2020-06-25 Thread Derek
This seems to be an error raised by a third-party library; you'd probably get a quicker / better response by contacting their devs. On Thursday, 25 June 2020 00:25:18 UTC+2, Sasi Tiru wrote: > > Exception: > > \lib\site-packages\import_export\resources.py", line 581, in i

Getting exception while importing data though Django Admin

2020-06-24 Thread Sasi Tiru
Exception: \lib\site-packages\import_export\resources.py", line 581, in import_data raise ImproperlyConfigured django.core.exceptions.ImproperlyConfigured models.py class Supplier(models.Model) : supplier_id = models.IntegerField(primary_key=True) supplier

Exception During Testing on Windows, Python 3.8

2020-06-11 Thread Matthew Pava
I continue to receive the following exception error at every single one of my tests. I'm running Python 3.8.2 on Windows 10. Exception happened during processing of request from ('127.0.0.1', 54962) Traceback (most recent call last): F

RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite3 as your application database? De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http

RES: Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Samuel Nogueira
Hi Farook. Are you using sqlite as your database?De: Farook MEnviado:quarta-feira, 3 de junho de 2020 13:46Para: Django usersAssunto: Geodjango Exception when importing django.contrib.gis.gdal I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http

Geodjango Exception when importing django.contrib.gis.gdal

2020-06-03 Thread Farook M
I have installed python 3.7.5 64 bit. GDAL 2.4.4 and corresponding python gdal from http://www.gisinternals.com/query.html?content=filelist&file=release-1900-gdal-2-4-4-mapserver-7-4-3.zip I have also set environment variables correctly. I did a gdalinfo --version from command prompt, i could

Re: Exception in tests when deleting users in Django

2020-05-17 Thread אורי
rs in bulk by .delete()? And if it does, how do I disable it so trying to delete users in bulk will raise an exception? אורי u...@speedy.net ‪On Sun, May 17, 2020 at 5:56 PM ‫אורי‬‎ wrote:‬ > Hi, > > I'm creating a new test and it has users and I delete them: > > User

Exception in tests when deleting users in Django

2020-05-17 Thread אורי
Hi, I'm creating a new test and it has users and I delete them: User.objects.all().exclude(pk=self.user_1.pk).delete() The User model has related models with on_delete=models.CASCADE which should be deleted as well. But in my test, I get this exce

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
lf.request.user) & Q( On Thursday, May 14, 2020 at 10:07:25 PM UTC-4, Motaz Hejaze wrote: > > Where does this exception happen ? > In which file , which line ? > > On Fri, 15 May 2020, 12:51 am Ahmed Khairy, > wrote: > >> Hi all >> >> I am addin

Re: Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Motaz Hejaze
Where does this exception happen ? In which file , which line ? On Fri, 15 May 2020, 12:51 am Ahmed Khairy, wrote: > Hi all > > I am adding a like/unlike button for Posts in a Listview, I am getting an > error: > > Exception Value: Related Field got invalid lookup: value >

Exception Value: Related Field got invalid lookup: value

2020-05-14 Thread Ahmed Khairy
Hi all I am adding a like/unlike button for Posts in a Listview, I am getting an error: Exception Value: Related Field got invalid lookup: value here is the Model: class Post(models.Model): designer = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField

Running sync_to_async to create object, but YET raise .ASynchronous exception

2020-05-06 Thread DAVID ALEJANDRO Pineda
Hello guys! I'm stucked on this problem, i have some script to save data to database using a django object. The script is with async,so i have to use the 'sync_to_async' function. Beyond that, running the script raise the ASynchronous exception, but it's look correct.

Re: Exception happened during processing of request from ...

2019-12-29 Thread Alfredo Silveira
n a macOS (mojave). > > On a regular basis I get this error message: > > Exception happened during processing of request from ('127.0.0.1', 54882) > Traceback (most recent call last): > File > "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Version

Re: Exception in thread django-main-thread:

2019-12-04 Thread Integr@te System
en the system decided out of knowhere > to generate the following errors and im due for presentation by tomorrow. > > > > Exception in thread django-main-thread: > Traceback (most recent call last): > File "C:\Users\tamik\Anaconda3\lib\threading.py", line 917, in > _b

Exception in thread django-main-thread:

2019-12-04 Thread Michael Mathonsi
Please help with resolving my application, i have setup the environment and almost finished my application when the system decided out of knowhere to generate the following errors and im due for presentation by tomorrow. Exception in thread django-main-thread: Traceback (most recent call

Re: Exception Value: (1048, "Column 'active_year_id' cannot be null")

2019-10-20 Thread Gil Obradors
Maybe you wan to fill this field, so last mail isn t the solution. Can you paste the code of form? Html amb form py? The user selects the year, or its automatically filled in view post class ? El dl., 21 d’oct. 2019, 7:27, Gil Obradors va escriure: > Hi! > This field cant be null > > Add

Re: Exception Value: (1048, "Column 'active_year_id' cannot be null")

2019-10-20 Thread Gil Obradors
Hi! This field cant be null Add null=True, blank=True To parameters of active_year and solved El dg., 20 d’oct. 2019, 18:58, Rain va escriure: > Hello Guys Hopefully someone can help me on this.! any help i appreciate > it. > > My Problem is This.. I do my research and still cant figure out

Exception Value: (1048, "Column 'active_year_id' cannot be null")

2019-10-20 Thread Rain
Hello Guys Hopefully someone can help me on this.! any help i appreciate it. My Problem is This.. I do my research and still cant figure out what the solution for this..! i do Try alot of things but still cant get this right. what i want is to populate the active_year_id. automatically when sub

KeyError for CSRF middleware during processing an exception response

2019-09-11 Thread Most. Runa
Fuck me +8801737940981 -- 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 https

KeyError for CSRF middleware during processing an exception response

2019-09-11 Thread Timothy Gates
If an exception response occurs during the middleware processing it looks like the CSRF middleware layer can obscure the issue by getting a KeyError exception of its own. The request.META does not contain the CSRF_COOKIE but the response handling seems to assume it has already been set. I get

Re: Exception value name is not defined

2019-08-16 Thread N'BE SORO
;>>> >>>>> >>>>> Le jeu. 15 août 2019 à 19:28, Kean a écrit : >>>>> >>>>>> Hi N’BE, >>>>>> >>>>>> If I have 6 objects in my dbase model, I would want all six to be >>>>>> returned to th

Re: Exception value name is not defined

2019-08-16 Thread DANIEL URBANO DE LA RUA
': obj.Micro_Small_Medium, > } > return render(request, 'editremovebusiness.html', context={"data":data}) > > when I save it and check the url > > it returns > > Exception Type: NameError > Exception Value: > > name 'obj&#x

Re: Exception value name is not defined

2019-08-16 Thread Kean Dumba
ode you sent is only returning 1 object, so i am missing >>>>> 5 >>>>> >>>>> how can I use the view code, to ensure all 6 are returned o the >>>>> template? >>>>> >>>>> Best, >>>>> >>>>>

Re: Exception value name is not defined

2019-08-16 Thread Tosin Ayoola
'Micro_Small_Medium': obj.Micro_Small_Medium, } return render(request, 'editremovebusiness.html', context={"data":data}) when I save it and check the url it returns Exception Type: NameError Exception Value: name 'obj' is not defined Is anyone familiar with this is

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
gt;>> you want to send what model on your view? >>>> >>>> Le jeu. 15 août 2019 à 19:04, Kean a écrit : >>>> >>>>> Hi N’BE, >>>>> >>>>> Thanks, the code worked, the problem is I wanted to use the co

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
;> >>>> However, I am still only getting the self defined str and returning to >>>> view, is there any way to get all records in the table to display? >>>> >>>> Best, >>>> >>>> Kea >>>> >>>> On 15 Aug 2019, at 1

Re: Exception value name is not defined

2019-08-15 Thread Kean
; >>> Best, >>> >>> Kea >>> >>> On 15 Aug 2019, at 19:50, N'BE SORO wrote: >>> >>>> Hello Use this code >>>> >>>> >>>> def editremovebusiness(request): >>>> data = Busine

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
he self defined str and returning to >>>> view, is there any way to get all records in the table to display? >>>> >>>> Best, >>>> >>>> Kea >>>> >>>> On 15 Aug 2019, at 19:50, N'BE SORO wrote: >>>> >>>&

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
gt;> data = Businessownercreate.objects.all() >>> context = { >>> 'data': data, >>> } >>> return render(request, 'editremovebusiness.html', context) >>> >>> Le jeu. 15 août 2019 à 18:45, RONAK JAIN a >>> écrit : >>&

Re: Exception value name is not defined

2019-08-15 Thread Kean
>>> } >>> return render(request, 'editremovebusiness.html', context) >>> >>> Le jeu. 15 août 2019 à 18:45, RONAK JAIN a écrit : >>> Hey Kean, >>> >>> What is the object here? >>> >>> >>&g

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
>> >>> >>> >>> >>> On Thu, Aug 15, 2019 at 11:37 PM Kean wrote: >>> >>>> Hi, >>>> >>>> I have written the following code in views.py >>>> >>>> def editremovebusiness(request): >>>> data = Businessow

Re: Exception value name is not defined

2019-08-15 Thread Kean
ws.py >> >> def editremovebusiness(request): >> data = Businessownercreate.objects.all() >> context = { >> 'Creator': obj.Creator, >> 'Micro_Small_Medium': obj.Micro_Small_Medium, >> } >> return

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
; context = { >>> 'Creator': obj.Creator, >>> 'Micro_Small_Medium': obj.Micro_Small_Medium, >>> } >>> return render(request, 'editremovebusiness.html', context={"data":data}) >>> >>> when I save it and

Re: Exception value name is not defined

2019-08-15 Thread Kean
ews.py > > def editremovebusiness(request): > data = Businessownercreate.objects.all() > context = { > 'Creator': obj.Creator, > 'Micro_Small_Medium': obj.Micro_Small_Medium, > } > return rende

Re: Exception value name is not defined

2019-08-15 Thread N'BE SORO
reator': obj.Creator, >> 'Micro_Small_Medium': obj.Micro_Small_Medium, >> } >> return render(request, 'editremovebusiness.html', context={"data":data}) >> >> when I save it and check the url >> >> it returns >

Re: Exception value name is not defined

2019-08-15 Thread RONAK JAIN
obj.Creator, > 'Micro_Small_Medium': obj.Micro_Small_Medium, > } > return render(request, 'editremovebusiness.html', context={"data":data}) > > when I save it and check the url > > it returns > > Exception Type: NameError > Exception Value: > &g

Exception value name is not defined

2019-08-15 Thread Kean
xt={"data":data}) when I save it and check the url it returns Exception Type: NameError Exception Value: name 'obj' is not defined Is anyone familiar with this issue, please advise cause and fix? Best, K -- You received this message because you are subscri

Re: Why am I getting multiple django error report emails for every exception?

2019-07-19 Thread Tal
After a bit of digging, it turns out that if I disable the django-channels app that I'm using, I only get the one email with the exception that was thrown. Even if I don't disable the django-channels app, and run it with daphne (as I would in production), rather than using the djang

Why am I getting multiple django error report emails for every exception?

2019-07-19 Thread Tal
creen Shot 2019-07-19 at 10.10.53 AM.png] The first email above seems to be related to the fact that after django hit my float('a') line, an HTTP 500 exception was thrown. One of the lines in it reads "Request data not supplied", if that helps. The second email above actual

Daphne/Twisted exception when serving SSL/TLS

2019-05-03 Thread BR
I get the following traceback shortly after running Daphne with TLS enabled (it doesn't occur when TLS is not configured). Any ideas? It doesn't seem to affect anything, but I thought I would bring it up here before trying to submit an issue: 2019-05-03 12:41:45,252 ERROR Ex

Re: Exception happened during processing of request from ...

2019-02-11 Thread Jon bae
Am Freitag, 8. Februar 2019 13:24:01 UTC+1 schrieb Pedram Badakhchani: > > I am getting similar errors, also running Django 2.15 with python 3.72, > would be very interested if you have found a solution > > No, sadly I did not found a solution. Maybe django is not 100% compatible with python 3.

Re: Exception happened during processing of request from ...

2019-02-08 Thread Pedram Badakhchani
n a macOS (mojave). > > On a regular basis I get this error message: > > Exception happened during processing of request from ('127.0.0.1', 54882) > Traceback (most recent call last): > File > "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Ver

Django Channels - Request hangs if exception is uncaught in AsyncHttpConsumer

2019-02-05 Thread notorious no
If an exception happens in the `handle` function of a consumer, then the exception is simply ignored. I'd like to be able to catch it via middleware if at all possible so I don't have to put decorators around every `handle` func. is this possible? -- You received this message becau

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-03 Thread Web Architect
itect a écrit : >> >> Hi, >> >> In our production environment, we receive mail whenever an exception >> happens in our django application. But it contains only the function >> traces. The log will be helpful it also contains data dump or the local >> v

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Simon Charette
gt; > Hi, > > In our production environment, we receive mail whenever an exception > happens in our django application. But it contains only the function > traces. The log will be helpful it also contains data dump or the local > variable dump for each function trace. > The exce

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
Ha, Hope you find a solution with django itself, sentry integration is just two lines and boom all uncaught exceptions, logger.error,exception,critical are automatically reported. Goodluck regards Vineeth On Fri, Feb 1, 2019 at 4:45 PM Web Architect wrote: > Hi Vineeth, > > Thanks for

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Web Architect
rting. > > regards > Vineeth > > On Feb 1, 2019 3:41 PM, "Web Architect" > > wrote: > >> Hi, >> >> In our production environment, we receive mail whenever an exception >> happens in our django application. But it contains only the function

Re: Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread vineeth sagar
i, > > In our production environment, we receive mail whenever an exception > happens in our django application. But it contains only the function > traces. The log will be helpful it also contains data dump or the local > variable dump for each function trace. > The exception trace on

Local variable dump on exception in production environment (DEBUG=False)

2019-02-01 Thread Web Architect
Hi, In our production environment, we receive mail whenever an exception happens in our django application. But it contains only the function traces. The log will be helpful it also contains data dump or the local variable dump for each function trace. The exception trace on the browser in

Exception happened during processing of request from ...

2019-01-31 Thread Jon bae
Hello, I'm running here *django 2.1.5* with *python 3.7.2* (installed with homebrew) on a macOS (mojave). On a regular basis I get this error message: Exception happened during processing of request from ('127.0.0.1', 54882) Traceback (most recent call last): File "/usr

Re: Exception Value: fe_sendauth: no password supplied

2018-11-18 Thread Akash Purandare
Hi Akash Can you specify as to what error you are facing? Also, I believe that the ENGINE that you are using must be 'django.db.backends.postgresql' as given in the official docs of Django: https://docs.djangoproject.com/en/2.1/ref/settings/#std:setting-DATABASE-ENGINE Regards Akash Purandare

Exception Value: fe_sendauth: no password supplied

2018-11-18 Thread akash
hi all i am trying to connect to postgres db and display records on webpage i have set up dyango project but not sure why i am getting this error. settings.py DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'test', 'USER': 'abtec

Exception Value: Cannot query "PERGUNTA 2": Must be "Question" instance.

2018-11-17 Thread Elias Coutinho
Good morning my friends. Before sending this doubt I searched a lot in the forums of life! I have the following code that does bulk inclusion: def seach_create(request): template_name = 'seach_create.html' if request.method == 'POST': form = SearchForm(request.POST) if for

Re: How to fix (2027, 'Malformed packet') exception?

2018-11-15 Thread prateek gupta
I am using mysqlclient 1.3.12. On Thu 15 Nov, 2018, 6:20 PM Jason its an issue with your mysql connection lib. which one are you using? > > On Thursday, November 15, 2018 at 1:02:20 AM UTC-5, prateek gupta wrote: >> >> Hi All, >> >> I am facing a strange issue in my pre-prod server (in dev and u

Re: How to fix (2027, 'Malformed packet') exception?

2018-11-15 Thread Jason
its an issue with your mysql connection lib. which one are you using? On Thursday, November 15, 2018 at 1:02:20 AM UTC-5, prateek gupta wrote: > > Hi All, > > I am facing a strange issue in my pre-prod server (in dev and uat it's > working fine). > Whenever I login in django admin and click on a

How to fix (2027, 'Malformed packet') exception?

2018-11-14 Thread prateek gupta
Hi All, I am facing a strange issue in my pre-prod server (in dev and uat it's working fine). Whenever I login in django admin and click on any table, it shows me following error- (2027, 'Malformed packet') [image: db_error.JPG] Is there any db setting I am missing here or its is related to se

Re: Django 1.9.8 with mysql 'Commands out of sync; you can't run this command now' exception

2018-09-23 Thread mottaz hejaze
sometimes when running this code, I got > the exception 'Commands out of sync; you can't run this command now' > > latest_message = > Message.objects.order_by("-id").filter(example_field=1).first() > > can you point out to me why does it happen and how to

Re: Django 1.9.8 with mysql 'Commands out of sync; you can't run this command now' exception

2018-09-23 Thread Adolfo Cueto
e.objects.filter(example_field=1).order_by("-id").first() >> >> >> El dom., 23 sept. 2018 a las 22:55, escribió: >> >>> I am a python developer and I am using Django 1.9.8 for my project. >>> I am having a problem with MySQL like below: >&g

Re: Django 1.9.8 with mysql 'Commands out of sync; you can't run this command now' exception

2018-09-23 Thread thanh
named 'Message' and sometimes when running this code, I >> got the exception 'Commands out of sync; you can't run this command now' >> >> latest_message = >> Message.objects.order_by("-id").filter(example_field=1).first() >> >>

Re: Django 1.9.8 with mysql 'Commands out of sync; you can't run this command now' exception

2018-09-23 Thread Adolfo Cueto
MySQL like below: > > I have a model named 'Message' and sometimes when running this code, I got > the exception 'Commands out of sync; you can't run this command now' > > latest_message = > Message.objects.order_by("-id").filter(example_field=1).

Django 1.9.8 with mysql 'Commands out of sync; you can't run this command now' exception

2018-09-23 Thread thanh
I am a python developer and I am using Django 1.9.8 for my project. I am having a problem with MySQL like below: I have a model named 'Message' and sometimes when running this code, I got the exception 'Commands out of sync; you can't run this command

Re: Django keeps object references in case of exception

2018-08-03 Thread claudio . cilloni
Sorry but... no. It's not mandatory for any Python implementation, but the CPython interpreter collects any objects as soon as its reference count reaches zero, thus running the __del__ method. https://docs.python.org/3/c-api/intro.html#reference-counts https://docs.python.org/3/reference/datamo

Re: Django keeps object references in case of exception

2018-08-03 Thread Christophe Pettus
> On Aug 3, 2018, at 07:23, claudio.cill...@gmail.com wrote: > > It seems to me this is a bug, but I'd like your opinions before actually > filing a bug report. I suspect what you are seeing there is a difference in garbage collection behavior. __del__ is not run immediately upon the referen

Django keeps object references in case of exception

2018-08-03 Thread claudio . cilloni
well as with Lighttpd + Gunicorn. I think Django is keeping some reference to the frame object of the function main(). This behaviour doesn't let me to close things like file descriptors or sockets in case of untrapped exception. Is this a bug? Or... what I'm doing wrong? I'

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-21 Thread Melvyn Sopacua
On woensdag 16 mei 2018 14:00:28 CEST Paolo Chilosi wrote: > just a note on your note: I created a few more new project/app using > PyCharm create facility and I found the app registered in the > INSTALLED_APPS settings. I do not know if it is Django or PyCharm that > introduce this setting. It's

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-16 Thread subhani shaik
> (from the PyCharm terminal) the command: > > (venv) C:\Users\Paolo\PycharmProjects\mysite>python manage.py > makemigration polls > > and then I obtained the following exception messages > > Traceback (most recent call last): > File "manage.py", line

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-16 Thread Daniel Hepper
the settings.py file, it only >> references it so it knows what configurations to load. >> >> On Tue, May 15, 2018 at 7:27 AM Paolo Chilosi >> wrote: >> >>> thanks for pointing out about the typo. However this was not the cause >>> of the exception.

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-16 Thread Paolo Chilosi
it knows what configurations to load. > > On Tue, May 15, 2018 at 7:27 AM Paolo Chilosi > wrote: > >> thanks for pointing out about the typo. However this was not the cause of >> the exception. Look to my previous answer. >> >> >> On Tuesday, May

  1   2   3   4   5   6   7   8   >