ruser. But when I try to access the Admin page of my project with my
superuser credentials, I receive this error:
OperationalError at /admin/login/
database or disk is full
Is this because my SQLite database is full from other projects? Or
possibly because I have too many virtual envs from thos
On 27 May 2022, at 22:37, Andrew Rea wrote:
OperationalError at /admin/login/
database or disk is full
Is this because my SQLite database is full from other projects? Or
possibly because I have too many virtual envs from those same other
projects? Or is it due to my personal computer
Hello!
This is my first post in this group so be gentle.
I'm creating a new Django project, and I've successfully created a
superuser. But when I try to access the Admin page of my project with my
superuser credentials, I receive this error:
OperationalError at /admin/login/
d
gt;> to not have the "_id" suffix:
>>
>> filename_number =
>> models.ForeignKey(FilenameTbl,db_column='filename_number',
>> to_field='rowid',null=True,blank=True,on_delete=models.SET_NULL)
>>
>> This is what eventually worked for me:
>>
>
;filename_number',
> to_field='rowid',null=True,blank=True,on_delete=models.SET_NULL)
>
> This is what eventually worked for me:
>
> https://stackoverflow.com/questions/68537031/how-do-i-resolve-the-following-error-in-django-operationalerror-foreign-key-m
>
> Che
what eventually worked for me:
https://stackoverflow.com/questions/68537031/how-do-i-resolve-the-following-error-in-django-operationalerror-foreign-key-m
Cheers,
Wai
On Mon, Jul 26, 2021 at 9:32 PM DJANGO DEVELOPER
wrote:
> can you please change your object from this:
> filename_id = mod
can you please change your object from this:
filename_id = models.ForeignKey(FilenameTbl,db_column='filename_id',
to_field='rowid',null=True,blank=True,on_delete=models.SET_NULL)
to :
filename_id = models.ForeignKey(FilenameTbl,db_column='filename',
to_field='rowid',null=True,blank=True,on_delete=
Hello,
I'm getting the following error whenever I attempt to save to the table in
a SQLite database:
foreign key mismatch - "procedure_tbl" referencing "filename_tbl"
In models.py, these are the tables that the error is refering to:
class FilenameTbl(models.Model):
rowid = models.AutoField
Learn how to ask a question. This could be a good start:
https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this g
rydjango\trydjango\lib\site-packages\django\db\utils.py" in
__exit__ 89. raise dj_exc_value.with_traceback(traceback) from exc_value File
"C:\Dev\trydjango\trydjango\lib\site-packages\django\db\backends\utils.py"
in _execute 85. return self.cursor.execute(sql, params) File
"C:\
> > > > > > .When I try to log in to the administration interface, the error
> > > > > > > below appears.I've been looking for solutions on the internet for
> > > > > > > hours and hours but I didn't find anything which can help me to
> > > > > >
e ones . I am a beginner .When I
>>>> try to log in to the administration interface, the error below
>>>> appears.I've been looking for solutions on the internet for hours and
>>>> hours but I didn't find anything which can help me to solve my problem
he error below appears.I've
>> been looking for solutions on the internet for hours and hours but I didn't
>> find anything which can help me to solve my problem. I have no idea what
>> could have caused this error.I really need help, it's urgent. I wish
>> some
>> been looking for solutions on the internet for hours and hours but I didn't
>> find anything which can help me to solve my problem. I have no idea what
>> could have caused this error.I really need help, it's urgent. I wish someone
>> can answer to me in frenc
gent. I wish
> someone can answer to me in french but if it is not possible, help me
> anyway, I will manage.
>
> OperationalError at /admin/login/
>
> attempt to write a readonly database
>
> Request Method: POST
> Request URL: http://www.djangoproject.localhost/adm
, I will manage.
OperationalError at /admin/login/
attempt to write a readonly database
Request Method: POST
Request URL: http://www.djangoproject.localhost/admin/login/?next=/admin/
Django Version: 3.0.5
Exception Type: OperationalError
Exception Value:
attempt to write a readonly data
Hello,
From :
https://stackoverflow.com/questions/56875632/upgrade-django-synchro-for-django-2-2-operationalerror-no-such-table-django
I am trying to upgrade django-synchro to django 2.2. I have already
upgraded the project to django 2.1 but I have now a problem with
ContentType object
Check 1.11 to 2.0 upgrade.
You already checked the project configuration and make migrations ?, it
could be changed with the upgrade!!!
I will hope help you.
PD I'm a beginner in Django.
El 06/05/18 a las 23:38, Michael Gauland escribió:
Just in case anyone else runs into this, I fixed it by s
Just in case anyone else runs into this, I fixed it by specifying
db_contraint=False for foreign keys which cross databases.
--
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
script that creates an NZ_Standard_Curve, and tries to save
it:
location = Location.objects.get(location='Christchurch')
curve = NZ_Standard_Curve(location=location,
soil_class='C',
period=1.5)
Thanks for the reply. Will check it out. Just printed the documentation.
On Friday, 04 May, 2018 03:08 AM, 'Anthony Flury' via Django users wrote:
Django 2.0 docs suggest using reportlab :
https://docs.djangoproject.com/en/2.0/howto/outputting-pdf/
I had some success with : pupeteer -
http
Django 2.0 docs suggest using reportlab :
https://docs.djangoproject.com/en/2.0/howto/outputting-pdf/
I had some success with : pupeteer -
http://django-puppeteer-pdf.readthedocs.io/en/latest/ - which works by
having a CBV type framework - so you subclass a PDF template view - and
that will a
: OperationalError
FINALLY. SUCCESS!!! What I ended up doing to correct the problem was to drop
the whole database (NO RECORDS YET). When I tried to run migrations it said
there were no changes. I then had to run makemigrations and
migrate so I am now back in business!!!
Now does anyone know of an
FINALLY. SUCCESS!!! What I ended up doing to correct the problem was to
drop the whole database (NO RECORDS YET). When I tried to run migrations it
said there were no changes. I then had to run makemigrations
and migrate so I am now back in business!!!
Now does anyone know of an *easy* way
I finally discovered what I think is the cause of my problem. *DJANGO
MIGRATIONS ARE NOT WORKING.*On the system that has the problem is where
I made migration to change some of the field names. The fields that
were not found where the ones that did get changed but the old unchanged
names were
sers@googlegroups.com
[mailto:django-users@googlegroups.com] *On Behalf Of *Gerald Brown
*Sent:* Wednesday, May 2, 2018 4:08 AM
*To:* Anthony Flury; django-users@googlegroups.com
*Subject:* Re: OperationalError
Thanks for the reply.
I have done the makemigrations/migrate numerous times. Each time
important to you.
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On
Behalf Of Gerald Brown
Sent: Wednesday, May 2, 2018 4:08 AM
To: Anthony Flury; django-users@googlegroups.com
Subject: Re: OperationalError
Thanks for the reply.
I have done the makemigrations/migrat
Thanks for the reply.
I have done the makemigrations/migrate numerous times. Each time it
says there is an error in the previous migration file so I have to
comment out most of the file. I then just deleted all of the self
generated migration files and started fresh.
I was also getting som
At first glance it looks like you haven't applied a migration to this
computer.
at the command line on this computer - in the man project directory :
If you have not copied the migration scripts from your development
machine do this first :
$ python manage.py makemigrations
and then do
I have a Django application that I am having problems with. In the Admin
page I have 3 sections, ABC, DEF & XYZ. Each has 1 option to "Add/Change".
In 2 of them when I click on the option it works fine. The third gives me
the following error "
*1054, "Unknown column 'xyz_xyz.first_name' in
generic\base.py"
>
> in dispatch
> 89. return handler(request, *args, **kwargs)
> File "C:\Users\Mudassar\dressikarepo\src\carts\views.py" in get
> 188. get_data = super(CheckoutView, self).get(request, *args,
> **kwargs)
> File
> "C:
y"
in _save_table
846. result = self._do_insert(cls._base_manager, using,
fields, update_pk, raw)
File
"C:\Users\Mudassar\dressikarepo\lib\site-packages\django\db\models\base.py"
in _do_insert
885.using=using, raw=raw)
File
"C:\Users\Mudassar\dre
py2.7.egg\django\db\backends\sq
lite3\base.py", line 323, in execute return Database.Cursor.execute(self,
query, params)
*OperationalError: no such table*: thrtest_mymodel
What's the problem?
How do I go about tracking down exactly what's happening? The point of
failure
class TicketReview(models.Model):
user = models.ForeignKey(User, null=True)
admin_user = models.ForeignKey(
User, #related_name="admin_user",#here is SystemCheckError
null=True)
Maybe there can be some friendly error raise,rather than raise `
OperationalErro
Got it to work-- changed permissions of my shared part of the server using
the bash:
chmod 755 .
thanks james for thinking through this with me
On Sunday, April 19, 2015 at 5:49:41 PM UTC-7, David F wrote:
>
> oh and yes-- I SSH into my part of the server that's how I'm able to do
> all this :
oh and yes-- I SSH into my part of the server that's how I'm able to do all
this :X the database file is in the project folder just... it's coming up
with that message when I try to open it in shell
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
sqlite> .read db.sqlite3
Error: incomplete SQL: SQLite format 3pp_label",
"model")) �ite_autoindex_django_content_type_1django_content_type P ++
Ytablesqlite_sequencesqlite_sequence CREATE
TABLE
sqlite_sequence(name,seq)�Y // �atabledjango_migrationsdjango_migrations
CREATE
TABLE "django_
No need to switch databases.
Do you have any shell access to the server? Can you manually inspect the
database to see if the table actually exists (outside of any Django
commands)? I'm not sure what ASO offers.
-James
On Apr 19, 2015 9:19 AM, "David F" wrote:
> Or I'm using sqlite should I swit
Or I'm using sqlite should I switch to mysql?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, s
Hey James
Sorry I forgot to mention that I did run first ./manage.py syncdb to create
a superuser for the database and the admin, and have run makemigrations and
migrate several times throughout editing my models, still to no avail. I
did it again after seeing your post just to be sure :p same
'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
> }
> }
>
> # Internationalization
> # https://docs.djangoproject.com/en/1.7/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
&g
on
# https://docs.djangoproject.com/en/1.7/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_ROOT = 'st
kages/django/template/base.py"
> in _render
> >>>>>>> 142. return self.nodelist.render(context)
> >>>>>>> File
> "/home/copser/.virtualenvs/django17/local/lib/python2.7/site-packages/django/template/base.py"
> in render
> >&
ckages/django/template/base.py"
in render
>>>>>>> 844. bit = self.render_node(node, context)
>>>>>>> File
"/home/copser/.virtualenvs/django17/local/lib/python2.7/site-packages/django/template/debug.py"
in render_node
&
python2.7/site
>>>>>> -packages/django/template/debug.py" in render_node
>>>>>> 80. return node.render(context)
>>>>>> File "/home/copser/.virtualenvs/django17/local/lib/python2.7/site
>>>>>> -packages/dja
._resolve_lookup(context)
>>>> File "/home/copser/.virtualenvs/django17/local/lib/python2.7/site
>>>> -packages/django/template/base.py" in _resolve_lookup
>>>> 764. current = current[bit]
>>>> File "/home/copser/.virtualenvs/djan
t;> -packages/django/template/defaulttags.py" in render
>>>>> 305. match = condition.eval(context)
>>>>> File "/home/copser/.virtualenvs/django17/local/lib/python2.7/site
>>>>> -packages/django/template/defaulttags.py"
self._wrapped = self._setupfunc()
>>> File "/home/copser/.virtualenvs/django17/local/lib/python2.7/
>>> site-packages/django/contrib/auth/middleware.py" in
>>> 22. request.user = SimpleLazyObject(lambda: get_user(request))
>>> File "/home/co
on2.7/
>> site-packages/django/contrib/sessions/backends/base.py" in _get_session
>> 175. self._session_cache = self.load()
>> File "/home/copser/.virtualenvs/django17/local/lib/python2.7/
>> site-packages/django/contrib/sessions/backends/db.py"
ger.py"
>
> in manager_method
> 92. return getattr(self.get_queryset(), name)(*args,
> **kwargs)
> File
> "/home/copser/.virtualenvs/django17/local/lib/python2.7/site-packages/django/db/models/query.py"
>
> in get
> 351. num
.virtualenvs/django17/local/lib/python2.7/site-packages/django/db/backends/utils.py"
in execute
81. return super(CursorDebugWrapper, self).execute(sql,
params)
File
"/home/copser/.virtualenvs/django17/local/lib/python2.7/site-packages/django/db/backends/utils.py"
Hello James, will do but I am not at mine lap top atm, gona do it as soon
as posible, tank you very much.
On Saturday, February 28, 2015, James Schneider
wrote:
> Generally this happens when you don't apply the initial migration. Have
you run 'python manage.py migrate' (assuming Django >= 1.7 sin
s, collecting
> static, making migrations to mine django application, I have experienced an
> OperationError saying:
> no such table: django_session
>
> You can find the rest of mine question here on stackoverflow
> <http://stackoverflow.com/questions/28778126/django-operat
rest of mine question here on stackoverflow
<http://stackoverflow.com/questions/28778126/django-operationalerror>, Can
someone help me over come this error, tank you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsub
>
>>>>>> Sorry I don't know what to do to help you more.
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Andréas
>>>>>>
>>>>>> 2015-02-24 12:49 GMT+01:00 :
>>>>
;>
>>>>>> Hi Andreas,
>>>>>>
>>>>>> I can connect using "python manage.py dbshell" it connects without
>>>>>> any error.
>>>>>>
>>>>>> Is there a difference, if i am not mistaken
rence, if i am not mistaken the dbshell test shows
>>>>> that the configuration of the DB is correct and that i can connect from
>>>>> the
>>>>> machine, correct ?? From the stack trace it seems that the real issue is
>>>>> not
;>>>
>>>> Regards,
>>>> Alex
>>>>
>>>> On Friday, February 20, 2015 at 7:12:05 PM UTC+2, Andréas Kühne wrote:
>>>>>
>>>>>
>>>>> 2015-02-20 17:18 GMT+01:00 :
>>>>>
>>>>>>
15-02-20 17:18 GMT+01:00 :
>>>>
>>>>> Hi,
>>>>>
>>>>> I migrated my project to a new infrastructure but i kept the same
>>>>> versions Apache 2.2 + mod_wsgi + python 2.6.1 + Django 1.2.1
>>>>>
>>>>&g
-02-20 17:18 GMT+01:00 :
>>>
>>>> Hi,
>>>>
>>>> I migrated my project to a new infrastructure but i kept the same
>>>> versions Apache 2.2 + mod_wsgi + python 2.6.1 + Django 1.2.1
>>>>
>>>> I am trying to run my project and i
d my project to a new infrastructure but i kept the same
>>> versions Apache 2.2 + mod_wsgi + python 2.6.1 + Django 1.2.1
>>>
>>> I am trying to run my project and i am getting the below exception that
>>> seems to be from Django and i need help pin pointing the e
>> because i think that the actual exception is never caught and returned to
>> the log and all i am getting is the OperationalError: ORA-03114: not
>> connected to ORACLE. I checked the Oracle DB and i can connect to it.
>>
>> [Fri Feb 20 17:40:51 2015] [error] [
o and i need help pin pointing the exact cause,
> because i think that the actual exception is never caught and returned to
> the log and all i am getting is the OperationalError: ORA-03114: not
> connected to ORACLE. I checked the Oracle DB and i can connect to it.
>
> [Fri Feb 20 17:40:
onnection.close()
[Fri Feb 20 17:40:51 2015] [error] [client xx.xx.xx.xx] OperationalError:
ORA-03114: not connected to ORACLE
[Fri Feb 20 17:40:51 2015] [error] [client xx.xx.xx.xx]
[Fri Feb 20 17:40:51 2015] [error] [client xx.xx.xx.xx] Request Failed for
: /wgtproxy/admin/, Resp Code : [500
that the actual exception is never caught and returned to
the log and all i am getting is the OperationalError: ORA-03114: not
connected to ORACLE. I checked the Oracle DB and i can connect to it.
[Fri Feb 20 17:40:51 2015] [error] [client xx.xx.xx.xx] mod_wsgi
(pid=27565): Exception occurred
exact code on this page (this page was written for
> django1.5 so actually I amended a few things to match for django1.6)
>
> It goes perfectly well untill making login page and giving authentication
> to the user.
> But when it comes to giving authorization like below it gives
ListView):
>
> model = Contact
> template_name = 'contact_list.html'
>
> def get_queryset(self):
>
> return Contact.objects.filter(owner=self.request.user)
>
> the error message is like this
>
> OperationalError at /addressbook/
>
etimes raise error
> like this;
>
> OperationalError at /
>
> fe_sendauth: no password supplied
>
>
>
> Full error looks like this;
>
> OperationalError at /
>
> fe_sendauth: no password supplied
>
> Request Method: GET Request URL: http://www.domain.
KYAPAN a écrit :
>
>> Hello,
>>
>>
>> I just start to publish my app on web. Everything going well but I face a
>> new problem, before I never face. Site working but sometimes raise error
>> like this;
>>
>> OperationalError at /
>>
gin/password didn't
> match.
>
> Regards,
> Xavier,
> Linovia.
>
> Le 18 oct. 2013 à 10:28, Muhammed TÜFEKYAPAN a
> écrit :
>
> Hello,
>
>
> I just start to publish my app on web. Everything going well but I face a
> new problem, before I never face. S
going well but I face a new
> problem, before I never face. Site working but sometimes raise error like
> this;
>
> OperationalError at /
>
> fe_sendauth: no password supplied
>
>
>
> Full error looks like this;
>
> OperationalError at /
>
&g
Hello,
I just start to publish my app on web. Everything going well but I face a
new problem, before I never face. Site working but sometimes raise error
like this;
OperationalError at /
fe_sendauth: no password supplied
Full error looks like this;
OperationalError at /
fe_sendauth
f the packet, which I am told is
only 1MB by default for windows.
On Tuesday, September 10, 2013 11:01:42 AM UTC-3, Paul Childs wrote:
>
> Environment: Django 1.4, MySQL 5.5.33
>
> In one of my views I am consistently getting a MySQL
> error: OperationalError: (2006, 'M
gt; On Tuesday, September 10, 2013 11:01:42 AM UTC-3, Paul Childs wrote:
>>
>> Environment: Django 1.4, MySQL 5.5.33
>>
>> In one of my views I am consistently getting a MySQL
>> error: OperationalError: (2006, 'MySQL server has gone away')
>>
>> Tr
I ran my test suite and the error didn't crop up there.
All tests that run my views passed.
--
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
Hey Sanjay,
Thanks for the reply.
I will probably pick at this problem every so often but I am not hopeful
about finding a solution as the problem seems to be down deep in Django.
I'm afraid that I will probably be out of my league on this one.
I have been wanting to upgrade my Djano version for
ntly getting a MySQL
> error: OperationalError: (2006, 'MySQL server has gone away')
>
> Traceback (most recent call last):
> File "C:\Python26\Lib\wsgiref\handlers.py", line 93, in run
> self.result = application(self.environ, self.start_response)
> Fi
Environment: Django 1.4, MySQL 5.5.33
In one of my views I am consistently getting a MySQL
error: OperationalError: (2006, 'MySQL server has gone away')
Traceback (most recent call last):
File "C:\Python26\Lib\wsgiref\handlers.py", line 93, in run
self.result = appl
When using sqlite3, one has to provide a full path to the database file.
For my projects I use something like this on my development machines (for
a database file named 'db'):
import os
PROJECT_DIR = os.path.dirname(__file__)
DATABASES = {
'default': {
'ENGINE': 'django.db.backen
make sure you don't have another instance of django running already.
-J
On Monday, July 22, 2013 1:48:43 PM UTC-4, Stian Sjøli wrote:
>
> i get this error while going throught the tutorial from the django
> website. I am a mac user, and have modified my settings-file to use sqlite3
> and the na
i get this error while going throught the tutorial from the django website.
I am a mac user, and have modified my settings-file to use sqlite3 and the
name variable to say "./mysite". Any suggestions why I get this error?
--
You received this message because you are subscribed to the Google Gro
Thank you,
I finally got this working by doing one app at a time.
Then I had to deal with sequence errors.
I tried and reset them all, now I am hoping I will have no issues when
users start
using my website on Monday.
On Sunday, May 19, 2013 2:55:47 AM UTC-4, Artem Zinoviev wrote:
>
>
> http://
http://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL
суббота, 18 мая 2013 г., 20:00:15 UTC+3 пользователь frocco написал:
>
> I have been looking for an easy way to convert, but nothing works for me.
> I tried dumpdata, loaddata, but get duplicate key, when I look at the
I have been looking for an easy way to convert, but nothing works for me.
I tried dumpdata, loaddata, but get duplicate key, when I look at the file,
I see no duplicates.
I am open to suggestions on converting.
Thanks
On Saturday, May 18, 2013 12:51:28 PM UTC-4, Artem Zinoviev wrote:
>
> use po
use postgreSQL
пятница, 17 мая 2013 г., 21:24:10 UTC+3 пользователь frocco написал:
>
> Hello,
>
> How can I resolve this in django 1.5?
>
> webfaction allows max 90 connections.
>
> Thanks
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To u
Hello,
How can I resolve this in django 1.5?
webfaction allows max 90 connections.
Thanks
--
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+unsubsc
ot;C:\Python27\lib\site-packages\django\db\backends\__init__.py",
> line 306,
> in cursor
> cursor = self.make_debug_cursor(self._cursor())
> File "C:\Python27\lib\site-packages\django\db\backends\mysql\base.py",
> line 38
> 7, in _cursor
> self.connec
On Tue, Jan 8, 2013 at 4:04 AM, Diederik van der Boor wrote:
> When you ask the mysql driver to connect to localhost, it will use the
> socket.
> To avoid this issue, better use 127.0.0.1.
which issue? what's wrong with using socket?
--
Javier
--
You received this message because you are sub
The hostname "localhost" has a special meaning for MySQL, at least on Linux it
has.
When you ask the mysql driver to connect to localhost, it will use the socket.
To avoid this issue, better use 127.0.0.1.
Also check whether the MySQL server is running on that port (netstat -a ?),
whether the ser
Hi! Recently I had the same problem and this site has helped
me:
http://stackoverflow.com/questions/11121819/mysqldb-in-python-cant-connect-to-mysql-server-on-localhost
I've set the next properties:
'ENGINE': 'django.db.backends.mysql',
'NAME': 'yourdbname',
'US
)
File "C:\Python27\lib\site-packages\MySQLdb\__init__.py", line 81, in
Connect
return Connection(*args, **kwargs)
File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 187, in
__in
it__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (20
jangotrunk/django/core/**management/
>> commands/syncdb.py", line 48, in handle_noargs
>> cursor = connection.cursor()
>> File "/users/home/system/lib/**djangotrunk/django/db/**backends/
>> __init__.py", line 62, in cursor
>> cursor = self._cursor(s
lib/djangotrunk/django/db/backends/
> __init__.py", line 62, in cursor
> cursor = self._cursor(settings)
> File "/users/home/system/lib/djangotrunk/django/db/backends/
> postgresql_psycopg2/base.py", line 84, in _cursor
> self.connection = Database.connect(c
sr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py",
line 177, in _cursor
self.connection = Database.connect(**conn_params)
File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 179,
in connect
connection_factory=connection_
I still have the same problem using gevent with gunicorn, but it works with
synchronous workers.
Did you find a solution?
2011/7/1 Андрей Махнач
> I'm getting this error randomly
> and it throws 500error to nginx (I'm using nginx+gunicorn)
>
> and it appears really randomly ;)
>
> On Jul 1, 10:
I'm getting this error randomly
and it throws 500error to nginx (I'm using nginx+gunicorn)
and it appears really randomly ;)
On Jul 1, 10:16 am, Adrián Ribao Martínez wrote:
> I think that the error comes only when starting the server.
>
> Reload the page about 10 times and check if you still ge
I think that the error comes only when starting the server.
Reload the page about 10 times and check if you still get the error.
Regards,
Adrián
> Hi Adrian,
>
> Have you solved this weird issue?
>
> if yes, please tell me how.
>
> Best regards,
> Andrey Makhnach
>
> On May 27, 12:53 pm, Ad
Hi Adrian,
Have you solved this weird issue?
if yes, please tell me how.
Best regards,
Andrey Makhnach
On May 27, 12:53 pm, Adrián Ribao wrote:
> I'm doing it manually because I'm just testing:
>
> ./manage.py run_gunicorn -c gunicorn.conf.py
>
> where gunicorn.conf.py
>
> # -*- coding: utf-8
_init__.py", line 75, in cursor
cursor = self._cursor()
File "/usr/lib64/python2.6/site-packages/django/db/backends/
postgresql_psycopg2/base.py", line 136, in _cursor
self.connection = Database.connect(**conn_params)
OperationalError: could not connect to server: Connection r
I'm doing it manually because I'm just testing:
./manage.py run_gunicorn -c gunicorn.conf.py
where gunicorn.conf.py
# -*- coding: utf-8 -*-
import multiprocessing
bind = "127.0.0.1:8000"
workers = multiprocessing.cpu_count() * 2 + 1
worker_class = 'gevent'
On 27 mayo, 02:23, Shawn Milochik w
1 - 100 of 189 matches
Mail list logo