Hello,
did you run:
python manage.py migrate
python manager.py createsuperuser
HTH.
Norberto
2015-05-02 12:20 GMT-03:00 Oleg Bocharov :
> Не отображается админ-панель. Подскажите пожалуйста, где искать причину.
>
> Спасибо!
>
> --
> You received this message because you are subscribed to the G
Hi,
just make sure you match your input names with what Django expects. For example:
If the HTML is your Form will need a "username" field.
HTH,
Norberto
2015-05-20 18:24 GMT-03:00 dk :
> i have a regular form in the template. the user and the password since the
> web designer did it like th
Hello
I'm running (in production) and app that uses raw queries, something like:
query = """
select table1.field1, table2.field3
from table1 left join table2
on test1.field1 = test2.field1
and test1.field2 = test2.field2
where table1.field1 = %(param1)s
"""
cursor = connections['database']
I forgot to say I reloaded (and restarted) nginx and uwsgi, but the query
is still cached
Thanks anyway!
2016-08-16 12:24 GMT-03:00 M Hashmi :
> Reload Nginx and see if still its loading cached query.
>
> On Tue, Aug 16, 2016 at 8:18 AM, 술욱 wrote:
>
>> Hello
>
Because this particular query runs in about 30 seconds and its result ends
up in an excel file, which is generated with openpyxl from a template.
If I change the template, the file returned by django is this new file, but
its contents, the query result, doesn't (and it executes immediately).
--
gt; if so what does it answers?
>
>
> On Tue, Aug 16, 2016 at 7:07 PM, 술욱 wrote:
>
>> Because this particular query runs in about 30 seconds and its result
>> ends up in an excel file, which is generated with openpyxl from a template.
>>
>> If I change the templat
Hello,
AFAIK, there's no "download". The best way I know to install Django is
to use virtualenvs. In your ubuntu laptop do:
$ sudo apt-get install virtualenvwrapper
Logoff and login. Now do:
$ mkvirtualenv myapp
That will switch your prompt to something like (myapp) youruser@yourhost:~$
Now d
Hello,
I'm trying to upgrade an app from Django 1.6 to 1.8 but I can't solve
a problem apparently related to a custom user model.
The project has an 'auth' app with its corresponding models.py and
apps.py. The snippet pasted bellow reproduces the problem which I
don't know how to fix.
Many TIA,
1.8.x.
Thanks.
Norberto
-- Forwarded message ------
From: 술욱
Date: 2015-10-06 22:37 GMT-03:00
Subject: Django 1.8: subclass AbstractUser, App 'auth' doesn't have a
'myuser' model.
To: 'Tom
Hello,
I'm trying to upgrade an app from Django 1.6 to 1.8
gt;> What are my options? AFAIK 1.6 is deprecated for security reasons and
>> I want to upgrade to 1.8.x.
>>
>> Thanks.
>> Norberto
>>
>>
>>
>> -- Forwarded message --
>> From: 술욱
>> Date: 2015-10-06 22:37 GMT-03:00
>
2015-10-14 15:21 GMT-03:00 syl pingus :
> Hello Norberto,
>
> In your first example, I think the name of your apps in the apps.py config
> file conflicts with the core Django auth module and it could explains the
> second exception you get.
Yes. I know, that's why I added label="myauth". The probl
Hello,
mysql server 3
django 1.6.11
workstation: ubuntu wily (15.10) mysql client 5.6.27
I need to make Django recognize secure-auth=false or skip-secure-auth=true
but so far I couldn't
I tried in project/settings.py
'OPTIONS': {
'skip-secure-auth': 'true',
},
2015-10-14 23:13 GMT-03:00 술욱 :
> 2015-10-14 15:21 GMT-03:00 syl pingus :
> > Hello Norberto,
> >
> > In your first example, I think the name of your apps in the apps.py
> config
> > file conflicts with the core Django auth module and it could explains the
> >
BTW, I just discovered:
$ ./manage.py sqlmigrate accounts 0002
$
In other words, empty.
Bug?
2016-01-05 9:29 GMT-03:00 Norberto Bensa :
> Hello,
>
> I have a project originally developed using Django 1.5 but upgraded up to
> 1.9.1. It uses a custom user model (from AbstractUser).
>
> Yester
Of course! Thanks for pointing it out :-)
2016-01-05 12:19 GMT-03:00 Tim Graham :
> You initial migration must have a state with the field as null=False so
> that Django can detect it has changed between migration 1 and 2. It sounds
> like you may have gotten that incorrect.
>
> On Tuesday, Jan
2016-03-18 15:17 GMT-03:00 Stanislav Vasko :
> Ufff, i hope there is another way. Something working so simple like
> passing data from View to Template with direct access like {{ company.name
> }} or {{ company.phone }}. I dont see the point why to modify Model and how
> it helps with styling form
2016-04-02 19:29 GMT-03:00 Devrhoid Davis :
> Can anyone provide me with some links as to where I could find
> resources for improving my skills and then avenues for using these skills to
> generate income?
>
In my experience, just start coding. Skills come with time, errors,
and learning from err
What's the value of request.session['user'] when user is not logged in?
My guess is it's an instance of AnonymousUser.
2016-04-20 11:43 GMT-03:00 Neto :
> Hi,
>
> I have a middleware that checks whether the user is logged in.
>
> class Check(object):
>
> """
> Check
> """
>
>
ssion['user']
> except KeyError:
> return redirect(reverse('mysite:login'))
>
>
> return is_authenticated_user() # why I need put "return" here?
>
>
>
>
>
>
> Em quarta-feira, 20 de abril de 2016
19 matches
Mail list logo