Re: User matching query does not exist.

2019-09-07 Thread Gabriel Stone
Tamam all the best On Sat, Sep 7, 2019 at 23:12 göktürk sığırtmaç wrote: > I solved it!!! using ObjectDoesNotExist via javatpoint. ( > https://www.javatpoint.com/django-exceptions) > > try: > user = User.objects.get(email=email) > except ObjectDoesNotExist: > user = None; > > > 7 Eylül

Re: User matching query does not exist.

2019-09-07 Thread Gabriel Stone
In your user creation form did you add an email field?if you did then only can you query users by their email On Sat, Sep 7, 2019 at 22:36 göktürk sığırtmaç wrote: > I'm trying get user according to email. > > user = User.objects.get(email=email) > > > if user is none, i will show message. I

Re: Hello From Nigeria

2019-03-21 Thread Gabriel Stone
hello i am from Ghana am i qualified to join? On Thu, Mar 21, 2019 at 1:54 PM Asiwaju Lasisi Prodigy Olatunbosun < bosun...@gmail.com> wrote: > Yes 08024273381 > > On Wednesday, 13 March 2019 12:44:16 UTC+1, Thaddeaus Iorbee wrote: >> >> Yes please. 0814390 >> >> On Monday, March 11, 2019,

Re: why is the static file not loading.i need solution

2018-10-20 Thread Gabriel Stone
Also in your href try using a forward slash not a back slash to make references On Sat, 20 Oct 2018 at 5:45 PM, Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Have you defined your static files entry in settings.py? > > On Sat, Oct 20, 2018 at 9:05 PM Obodoma Uzondu Vincent < >

Re: user authentication with extended (AbstractUser) user model

2013-06-20 Thread Evan Stone
Thanks for opening the ticket and thanks so much for the explanation as well! -evan On Wednesday, June 19, 2013 7:13:04 PM UTC-5, Russell Keith-Magee wrote: > > > On Thu, Jun 20, 2013 at 4:16 AM, Evan Stone <ev...@aquapony.com > > wrote: > >> Sure thing. Here ar

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
Also, thank you again! On Wednesday, June 19, 2013 3:16:05 PM UTC-5, Evan Stone wrote: > > Sure thing. Here are the snippets that gave me pause: > > "Think carefully before handling information not directly related to > authentication in your custom User Model. > > It

Re: user authentication with extended (AbstractUser) user model

2013-06-19 Thread Evan Stone
; On Tuesday, June 18, 2013 6:34:16 PM UTC-5, Russell Keith-Magee wrote: > > > On Tue, Jun 18, 2013 at 11:37 PM, Evan Stone <ev...@aquapony.com > > wrote: > >> Russ, >> >> Thanks so much for getting back to me! I shouldn't have posted that >> wi

Re: user authentication with extended (AbstractUser) user model

2013-06-18 Thread Evan Stone
model example in the docs. I was really reluctant to do so earlier because the docs make it sound like everything is pain moving forward with a custom user model. Is it? On Monday, June 17, 2013 6:50:23 PM UTC-5, Russell Keith-Magee wrote: > > > On Mon, Jun 17, 2013 at 10:31 PM, Evan

user authentication with extended (AbstractUser) user model

2013-06-17 Thread Evan Stone
Per the docs for Django 1.5, I have attempted to broaden the range of data held in the default user model by making an extended user model with the AbstractUser class. I made the model (called "Client") and listed it in settings.py as the AUTH_USER_MODEL. Syncdb took it and it worked great.

Re: Strange behaviour after pressing on button

2012-10-26 Thread Stone
ery possible that one of your proxies isn't > forwarding that header correctly. You might try submitting it as an > actual form parameter instead. > > _Nik > > On 10/25/2012 6:01 AM, Stone wrote: > > > > > > > > > Over Firefox and Firebug I have received that CS

Re: Strange behaviour after pressing on button

2012-10-25 Thread Stone
the CSRF token isn't being sent correctly. As a test, > try adding the @csrf_exempt decorator to your view. If you no longer get > the 403, then it's a CSRF problem. > > _Nik > > On 10/24/2012 6:31 AM, Stone wrote: > > > > > > > > > My Django

[Q: Basic] Strange behaviour after pressing on button

2012-10-24 Thread Stone
My Django application is running on real server (apache2-2.2.22). In urls.py is mentioned: (r'^configSave/$', configSave), My HTML is bellow. After pressing on configSave I am receiving HTTP 403 error page. In view.py is mentioned: def configSave(request): configFile={} if

Re: Authentication over DJango

2012-10-18 Thread Stone
oes that verification. In this case, the client is your web browser, > and the way you prevent such attacks is to use HTTPS and a signed > certificate from a certificate authority. > > _Nik > > On 10/18/2012 5:10 AM, Stone wrote: > > > > > > > > > Dear u

Authentication over DJango

2012-10-18 Thread Stone
Dear users, I would like to ask you how to implement feature which is used when you are connecting over SSH from one to another machine including man in the middle attack. Example: After pressing on button it will ask me whether fingerprint is correct and after pressing on yes password window

Re: Visibility images/css from another directories

2012-05-21 Thread Stone
Website:http://ilian.i-n-i.org > > > > > > > > On Thu, May 17, 2012 at 1:50 PM, Stone <phrac...@gmail.com> wrote: > > Sorry, > > now I have only the dev one for the moment, > > but for real usage I will have apache2-2.2.22 > > > Best reagard

Re: Visibility images/css from another directories

2012-05-17 Thread Stone
oment. If you have web server what is it: Apache, > NginX etc.? > > Best wishes, > Ilian Iliev > > -- > eng. Ilian Iliev > Web Software Developer > > Mobile: +359 88 66 08 400 > Website:http://ilian.i-n-i.org > > > > > > > > On Thu, May 17,

Visibility images/css from another directories

2012-05-17 Thread Stone
Dear users, I have a some simple question. Let's say that my project (dJango) is stored on the file system here: /opt/appl/htdocs and media files are stored here: /opt/appl/htdocs/media/css /opt/appl/htdocs/media/images All CSS and images are visible under directory /opt/appl/htdocs w/o problem.

Problem with Django naming convence

2012-05-10 Thread Stone
Dear user, I am novice with Django, I have developed some applications but each time they have the same URL as in physical path. like URL: http:/testlab and on file system was /opt/Django/testlab with view.py etc. Now I would like to develop application called SSO where all url.py, view.py will

Re: What reason is Django administration

2012-03-09 Thread Stone
-08 at 12:44 -0800, Stone wrote: > > I have developed some web pages and I have never used Django > > administration? > > Is there any control for controlling access of users? > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/ > > search for has_change_permis

What reason is Django administration

2012-03-08 Thread Stone
Dear users, I have developed some web pages and I have never used Django administration? Is there any control for controlling access of users? Do you have any examples? Thank you Petr -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Is it possible to run from Django script?

2011-09-20 Thread Stone
Dear users, I have simple question which regards with running script from view.py. Part of my view.py looks like: def updateSystem(request): print request.POST id = 20 idgrp = 0 print "ID: %d and IDGRP: %d" % (id, idgrp) if request.is_ajax(): message = "This is AJAX

Re: Come on, share your django powered sites with others.//Fwd: A tornado powered site to show any project powered sites(open source)

2010-08-23 Thread Stone Puzzle
://jquery.poweredsites.org jQuery powered sites http://python.poweredsites.org Python powered sites http://yii.poweredsites.org Yii framework powered sites. http://flask.poweredsites.org Flask powered sites. On Mon, Aug 9, 2010 at 4:03 PM, Stone Puzzle <stonepuz...@gmail.com> wrote: > Yes, but this site

Re: Come on, share your django powered sites with others.//Fwd: A tornado powered site to show any project powered sites(open source)

2010-08-09 Thread Stone Puzzle
by information with other projects. On Mon, Aug 9, 2010 at 12:27 AM, shacker <shac...@birdhouse.org> wrote: > On Aug 7, 9:50 pm, Stone Puzzle <stonepuz...@gmail.com> wrote: > > Django powered sites list http://django.poweredsites.org > > A much more co

Come on, share your django powered sites with others.//Fwd: A tornado powered site to show any project powered sites(open source)

2010-08-07 Thread Stone Puzzle
Django powered sites list http://django.poweredsites.org -- Forwarded message -- From: Felinx Lee Date: Tue, Aug 3, 2010 at 2:29 PM Subject: A tornado powered site to show any project powered sites(open source) To: python-torn...@googlegroups.com I am

Re: Best way to access 'request' in pre_save

2010-02-19 Thread Paul Stone
> > That's fine for one or two models. But what if I want to do this for a > > number of models, in every view? What's the best way to do that > > without code repetition? > > Using a ModelForm? > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/ Ok, I think I understand now.

Re: Best way to access 'request' in pre_save

2010-02-19 Thread Paul Stone
> Presumably you have a view which is updating this object. The view has > access to the HttpRequest. Therefore, the easy, simple, clean and > elegant way is... to have the view set the value of that field. So do > that and ignore anyone who tells you otherwise -- > magically/secretly/implicitly

Best way to access 'request' in pre_save

2010-02-18 Thread Paul Stone
I'm trying to find the best way to update a model using data from the request object (e.g request.user) before it is saved. One use case for this is updating an 'updated_by' field on a model. I've come across http://www.djangosnippets.org/snippets/476/ which suggests one way of doing this. What

Fwd: 500 error if django run in scgi mode(fcgi is ok)

2008-08-31 Thread Puzzle Stone
-- Forwarded message -- From: Puzzle Stone <[EMAIL PROTECTED]> Date: Thu, Aug 28, 2008 at 4:23 PM Subject: 500 error if django run in scgi mode(fcgi is ok) To: [EMAIL PROTECTED] Fcgi and scgi work well in my machine when i use django0.96.2, but scgi failed when I try to m

Re: Fwd: Break with Django SVN r6718

2007-12-10 Thread Josh Stone
On Dec 10, 2007 3:03 PM, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Hmm. What you said about not having Django installed in site-packages > makes me think... > > What does your PYTHONPATH environment variable have in it? > I wasn't setting PYTHONPATH to anything. Normally packages are picked up

Re: Fwd: Break with Django SVN r6718

2007-12-10 Thread Josh Stone
07 09:12:17] "GET / HTTP/1.1" 404 2053 > > Can you provide any other debugging information that might help me > narrow down the problem? > > Adrian, what errors were you seeing that caused the revert? > > Todd > (Sorry it took me so long to get to this--teaching has

Re: Fwd: Break with Django SVN r6718

2007-12-04 Thread Josh Stone
I just found that commit 6871 fixed the problem by reverting 6718: "Undid [6718], as it broke 'django-admin.py runserver' for a reason I haven't figured out yet" But since there still seems to be some mystery, I went on with some debugging on 6718 anyway below. On Dec 2, 6:53 am, Malcolm

Fwd: Break with Django SVN r6718

2007-11-30 Thread Josh Stone
jango SVN r6718 To: [EMAIL PROTECTED] That's very strange... I don't have any ideas. It's working perfectly fine here. There must be some subtlety that we're missing. I am using Python 2.5, though. Maybe there's some bug they introduced with 2.4. Christian On Nov 30, 2007 2:57 PM, Josh Sto