Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-19 Thread Leo guitar girl
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-19 Thread Leo guitar girl
; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Leo guitar girl
e step and the documentation is good in > pyotp. > > On Tue, Jan 18, 2022 at 8:35 PM Leo guitar girl < > mansarimtabas...@gmail.com> wrote: > >> I am following the tutorial from LearnVern.com >> >> >> https://www.learnvern.com/python-tutorial-django/project-impleme

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Leo guitar girl
> > > On Tuesday, January 18, 2022 at 9:00:41 AM UTC-7 bikash...@gmail.com > wrote: > >> first of what did you use to generate otp. If you've used pyotp libraries >> then you can verify otp in simple step and the documentation is good in >> pyotp. >> &g

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Leo guitar girl
{'msg': message}) else: message = "OTP is incorrect" return render(request, "myapp/otpverify.html", {'msg': message}) else: return render(request, "myapp/signup.html") On Tue, Jan 18, 2022 at 3:21 PM Kasper Laudrup wrote:

Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-16 Thread Leo guitar girl
Environment: Request Method: GET Request URL: http://127.0.0.1:8000/otp/ Django Version: 4.0.1 Python Version: 3.9.9 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: Migration Issues when updating model's default primary key from id to uuid

2019-02-19 Thread Thomas Leo
I'm running django 1.11, have this same issue. Has this issue been fixed in later versions of django? Is there a workaround for 1.11? On Sunday, November 12, 2017 at 7:30:45 AM UTC-5, Liuyang Wan wrote: > > Thanks for the link. It’s interesting that two years past the bug is still > unresolved.

How can I get back my English pages (multi-lingual site updated from en to en-us)

2018-09-01 Thread Leo Treasure
Hello, I've needed to update the settings.py file LANGUAGE_CODE = 'en' to 'en-us' which has resulted in the English pages becoming empty. I've been told by my host that there maybe an SQL command I need to run to change the languages for the previously created pages over to en-us. Can someone

Pressing enter/return key does not submit the list_editable in Django admin

2017-03-02 Thread Leo Shao
I'm assuming this is because there are two submit buttons in one form and when pressing enter (while focused on an input), it submits the action (e.g. delete) rather than the list_editable. When I press enter (while focused on an 'hours' input), it reacts

Django - How to have multiple (4) distinct forms in CBV

2016-12-09 Thread Leo Shao
I need 4 forms to: sign up for an event (1), un-sign up for an event (2), type in a passcode to manage an event (3) which then shows a modal box that allows that person to check in everyone that shows up at the event (4). I'm using a (ListView, FormView) to allow looping through the numerous

I am not sure what “: command not found” means when I run virtualenvwrapper mkvirtualenv command

2016-07-13 Thread Leo
I am learning Linux and how to set-up a Django environment for the first time. I am not sure what “: command not found” means when I run virtualenvwrapper commands. Below is the command line sequence: root@intranet-django:/home/lv/# workon root@intranet-django:/home/lv/# mkvirtualenv

Re: Newbie question regarding uninstalling Django system-wide.

2016-07-13 Thread Leo
Thanks Mike On Tuesday, July 12, 2016 at 8:03:18 PM UTC-4, Mike Dewhirst wrote: > > On 13/07/2016 1:55 AM, Leo wrote: > > I am learning how to use Django. With my first attempt I did not use a > > virtual environment instead installed Django system-wide. Now I have >

Newbie question regarding uninstalling Django system-wide.

2016-07-12 Thread Leo
or apt-get. Or do I need to be concerned with this at all, meaning will the base install conflict with instances installed in the virtual environments? Your help is appreciated. Leo -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: Beginner question regarding virtualenv

2016-06-25 Thread Leo Vensel
Great advice from everyone glad I asked. Project dependencies file definitely! Thanks On Fri, Jun 24, 2016 at 10:45 AM, Nate Granatir wrote: > I've found that virtualenvs are definitely worth the time to set up, there > will be a time down the road when you need to have

Re: Beginner question regarding virtualenv

2016-06-23 Thread Leo
Gary and Daniele, Looks like setting-up virtual environments is the way to go. Thanks for your help. I'm glad I asked before really digging in to serious development. Leo On Thursday, June 23, 2016 at 3:06:16 PM UTC-4, gary719_list1 wrote: > > On 06/23/2016 11:36 AM, Leo wrote: &g

Beginner question regarding virtualenv

2016-06-23 Thread Leo
Hey Everyone, I’m a total newb to using Django and open stack. I am working on creating a Django development environment in a VMware environment/Ubuntu OS. Eventually I want to deploy this to production. The site’s purpose is as an intranet site. I have been following the Django tutorial

no translation file found for domain 'django'

2015-11-19 Thread Leo Que
I copied the django distribute into my project folder thinking it will work well it works perfectly in one of my machine ,but throw an error below in another one Traceback (most recent call last): File "manage.py", line 12, in execute_from_command_line(sys.argv) File

Re: Django QuerySets, how to express EXISTS ... IN ...

2015-02-08 Thread Dean De Leo
Am I mispelling something? Thanks, Dean De Leo On 08/02/15 16:55, Neto wrote: > mytag = Tag.objects.get(id=1) > mytag.blog_set.all() > > Em domingo, 8 de fevereiro de 2015 14:30:25 UTC-2, Dean De Leo escreveu: > > Hello, > I am trying to find how to filter the entri

Django QuerySets, how to express EXISTS ... IN ...

2015-02-08 Thread Dean De Leo
of tags. For instance, I would express the query in SQL as: SELECT * FROM blog_blog b WHERE EXISTS ( SELECT 1 FROM blog_tag t WHERE t.blog_id = b.id AND lower(t.name) IN ('tag1', 'tag2', 'tag3') ); How to represent the same query with the Django QuerySets ? Thanks, Dean De Leo -- You received

Context processors, am I doing them right?

2015-02-03 Thread Dean De Leo
Hi, I am new to Django and I am still going through the tutorial. I've tried to set up a context processor for the following scenario, and I would like to obtain some confirmation if this is a proper solution or I am doing some mess.. In my base template with a header there is a navigation bar. A

Re: ANN: Django website redesign launched

2014-12-18 Thread Thomas Leo
The new Design looks great! Awesome job! One thing I really like about https://docs.python.org/3/ is the ability to show/hide the side bar. The new design features a very large sidebar, being able to toggle it would be awesome. Also as previously mentioned trac doesn't look right yet. On

Re: [ANNOUNCE] Django 1.7 released

2014-09-03 Thread Thomas Leo
Keep up the great work! On Tuesday, September 2, 2014 6:13:21 PM UTC-4, James Bennett wrote: > > Django 1.7 is now available: > > https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ > > Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5 > release is the final

Re: Login at the end of form wizard

2014-02-13 Thread Thomas Leo
Sorry I meant to say NamedUrlSessionWizardView not NamedUrlWizardView On Thursday, February 13, 2014 11:08:36 AM UTC-5, Thomas Leo wrote: > > >> when a user logs in and gets redirected to the order page the wizard > starts again from the beginning (loosing all the data ins

Re: Login at the end of form wizard

2014-02-13 Thread Thomas Leo
>> when a user logs in and gets redirected to the order page the wizard starts again from the beginning (loosing all the data inserted the first time). The issue is that in WizardView, triggering the get function causes the session to

Re: Using Django User Authentication from an Android App (CSRF issue?)

2014-02-12 Thread Thomas Leo
>> Obviously this isn't an ideal or secure way of doing things and what I originally tried was sending a POST request, but this gets denied with a 403 and a message about not having a CSRF cookie attached. I haven't developed anything with Android but it sounds like you need to send a CSRF in

Re: django application hosted on godaddy don't display the site models in admin page

2014-02-12 Thread Thomas Leo
Can you give a little more info on your application stack? On Wednesday, February 12, 2014 9:08:17 AM UTC-5, Mironiuc Sergiu wrote: > > > I have a problem. I moved a django site from one hosting to godaddy. On > the GoDaddy hosting it doesn't display in the admin page the site models. > >

Re: Parellel request from the same user in very short time

2011-09-25 Thread Leo
this in the first place. Leo On Sep 25, 7:24 pm, Martin Tiršel <dja...@blackpage.eu> wrote: > On Sun, 25 Sep 2011 02:09:46 +0200, Russell Keith-Magee   > > > > > > > > > > <russ...@keith-magee.com> wrote: > > On Sat, Sep 24, 2011 at 10:08 PM, Martin T

Re: ANN: django-iadmin

2011-07-10 Thread leo
', 'C:\\Windows\\system32\\python26.zip', 'D:\\Python26\\DLLs', 'D:\\Python26\\lib', 'D:\\Python26\\lib\\plat-win', 'D:\\Python26\\lib\\lib-tk', 'D:\\Python26', 'D:\\Python26\\lib\\site-packages'] Server time:Mon, 11 Jul 2011 08:22:54 +0800 On 2011/7/10 12:30, leo wrote: hi, sax I

Re: ANN: django-iadmin

2011-07-09 Thread leo
hi, sax I downloaded the package and want to install is using normal way then I got error like this: D:\saxix-django-iadmin-ec7ad2a>setup.py install Traceback (most recent call last): File "D:\saxix-django-iadmin-ec7ad2a\setup.py", line 44, in version = ".".join(iadmin.__version__),

Re: Questions on markdown

2011-07-05 Thread leo
thank you all good news, with your help, I found a way to achieve my goal. on the way to what i want. On 2011-7-5 23:04, bruno desthuilliers wrote: On Jul 5, 3:23 pm, Derek wrote: Good news: you're using Python and text processing is easy in Python. Bad news: even if

Re: Django admin - how to hide some fields in User edit?

2011-07-04 Thread leo
try to modify this file "Python26\Lib\site-packages\django\contrib\auth\admin.py" find this line (_('Groups'), {'fields': ('groups',)}), comment this line you will remove groups On 2011-7-5 4:59, galgal wrote: How can I hide fields in admin User edit? Mainly I want to hide

Re: Questions on markdown

2011-07-04 Thread leo
: On 2011-07-04, at 19:06 , leo wrote: I using a textfield to store some information and in admin input interface i enter like this Action: check WSMB Reason: customer check this then got error Result: finish, result is good, in spec every single sentence every row, I using markdown to convert

Re: Questions on markdown

2011-07-04 Thread leo
Yes, you totally understood me,actually I copied the text from word and paste into textfield, it is very inconvenience manually add a blank line and also as you mentioned,if I put blank line between each line the appearance is not what i like i like this Action: check WSMB Reason: customer

Questions on markdown

2011-07-04 Thread leo
I using a textfield to store some information and in admin input interface i enter like this Action: check WSMB Reason: customer check this then got error Result: finish, result is good, in spec every single sentence every row, I using markdown to convert this plain text to html but it did not

Re: ANN: django-iadmin

2011-07-04 Thread leo
It looks very good.I will follow this project and apply it soon. thanks for your awesome work. On 2011-7-4 22:42, sax wrote: Sorry, wiki still in progress. anyway demo application in included ( testprj directory), some screenshots are available at

Re: My tool to generate django code

2011-05-22 Thread leo
On 2011-5-22 12:54, Brice Leroy wrote: Hello guys, I posted a while ago about my project on this forum. Some liked it some kind of hated it (weird)... I though I would post here for updates. Django Generator is a tool to build django skeleton of your app (model, form, view, templates...). I

Re: Problems importing model classes that reference each other...

2011-05-15 Thread Leo
As Shawn said, if you really must have both apps refer to the other's models, then then they're not really separate apps. If you're just trying to resolve a generic circular-reference problem, remember that ForeignKey can also take the name of a class as its first argument, see

Re: my models are remembering old fields that I have since deleted

2011-05-08 Thread Leo
I know this probably seems like an orthogonal answer to your question, and also that you're just trying to get something going quickly, but it's really worth setting up South (http://south.aeracode.org/) for any meaningful Django project. Unfortunately, after the fact South can't help you with

Re: New python, django user... having issues

2011-04-16 Thread leo
I have two models, model A and model B , model A like this CUSTOMER_NAME = ( (IBM, 'IBM'), (GSMC, 'GSMD'), (CSMC, 'CSMC'), (HJTC, 'HJTC'), customer_name = models.IntegerField(choices = CUSTOMER_NAME, default = IBM,) activity_type = models.IntegerField(choices =

Re: django session InvalidOperation

2010-12-11 Thread Leo
Hard to know from what's shown here, but it seems likely that your database didn't get created properly on the new server. The error suggests that the expire_date column of the django_session table in the MySQL database is of type DECIMAL rather than the expected DATETIME. How did you migrate

Re: Is it safe to alter Django generated tables in MySQL to have composite PK?

2010-04-29 Thread Leo
Hi Continuation, In Django, at this time, the best you can do is: class AuctionBid(models.Model): class Meta: unique_together = ( ( ' On Apr 29, 12:09 pm, Continuation wrote: > I'm using MySQL with Django. > > MySQL uses clustered index. I have a class

Re: Is it safe to alter Django generated tables in MySQL to have composite PK?

2010-04-29 Thread Leo
In Django, the best current option I know of is: from django.db import models class AuctionBid(models.Model): On Apr 29, 12:09 pm, Continuation wrote: > I'm using MySQL with Django. > > MySQL uses clustered index. I have a class AuctionBid for which the > "natural"

Re: Is it safe to alter Django generated tables in MySQL to have composite PK?

2010-04-29 Thread Leo
Hi Continuation, In Django, at this time, the best you can do is: class AuctionBid(models.Model): class On Apr 29, 12:09 pm, Continuation wrote: > I'm using MySQL with Django. > > MySQL uses clustered index. I have a class AuctionBid for which the > "natural" PK is

Re: multi-language capabilities of Django/Satchmo

2010-04-27 Thread Leo
stuff along those lines). We simply build it into our apps where needed. Leo On Apr 27, 4:37 am, django_jedi <pemaq...@gmail.com> wrote: > Hi All, > > I'm interested in finding out more about practical use of django's > multi-language capabilities for international sites.  Do

Re: django authentication system

2010-04-26 Thread Leo
information attached to the User model, a one-to-one relationship is good, but in many situations the username is enough and you don't even need to bother. Leo On Apr 3, 12:22 am, Heit <kirill.kosi...@gmail.com> wrote: > Hello, > > I'm newbie in django, reading documentation i underst

Re: auto generate "dummy" content (e.g. Lorem ipsum generator for Django)

2010-04-25 Thread Leo
. Leo On Apr 24, 4:41 am, Brad Buran <bbu...@alum.mit.edu> wrote: > Is there any easy way of generating dummy content for models in Django?  As > I'm learning how to use Django, I often find myself deleting the sqlite > database and running syncdb each time (rather than dealing

Re: Django 1.1 and Jython

2009-12-20 Thread Leo Soto
Hello, Those problems were caused because django-jython 1.0.X is meant to be used with Django 1.0. We released django-jython 1.1.0 a few days ago[1], and the major news is that it works with Django 1.1.1. Feel free to give it a try and help us with some feedback! [1]

Re: runaway apache takes up all of swap

2009-10-30 Thread Leo Shklovskii
This problem turned out to be an application issue. I am using GeoDjango and calling buffer() with a negative value which caused problems on certain polygons for the underlying GEOS library. Thanks to everyone who responded off list. -- --Leo On Fri, Oct 30, 2009 at 8:48 AM, Leo Shklovskii

runaway apache takes up all of swap

2009-10-30 Thread Leo Shklovskii
if I can figure out something with gdb, but I'm not quite sure how to do that. Any thoughts or ideas from those who have more experience with this would be very much appreciated! -- --Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed

Default Image when ImageField is empty

2009-08-15 Thread Leo
Hi all, I would like to know what I need to do to fill an ImageField with a default image when the user does not submit any on the form. thanks, Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

GeoDjango/Maxmind GeoIP on Windows

2009-06-22 Thread Leo Shklovskii
Has anyone gotten the MaxMind GeoIP functionality working on Windows? I'm having a tough time getting the dll compiled from source and can't seem to find it anywhere. -- --Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed

non-existent models.py treatment

2009-04-01 Thread Leo
I ran into a situation recently where I was trying to do syncdb on a project that included an application with initial_data but no models.py. The syncdb failed silently and it took me a little while to understand what was going on. Is it an explicit design decision to fail on encountering no

TypeError: __init__() got an unexpected keyword argument 'debug'

2008-08-21 Thread leo
I am getting the following error while starting fcgi process for my django application. Did any one face this problem before? = Traceback (most recent call last): File "./dispatch.fcgi", line 15, in ? runfastcgi(method="threaded", daemonize="false") File

checking for decorators or view meta properties

2008-06-28 Thread Leo Shklovskii
name is 'require_login' but that seems fragile and breaks if a function is decorated multiple times. Can anyone offer any advice on how to achieve my goal in a pythonic way? -- --Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Experimental port of Django to Java

2008-01-04 Thread leo
This is pretty amazing. Thank you for doing it! I'd love to be able to expand/hack on it. Just out of curiousity, how much time went into getting it to this point? -- --Leo On Jan 4, 1:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Why, I have no idea just got t

Re: Is it possible to debug a view using breakpoints in Eclipse?

2007-11-05 Thread Leo
Just so this is entered in the thread: I have a very similar problem in Komodo (the ActiveState IDE). I use the noreload option, and breakpoints in "my code" (i.e., applications I wrote) are reliable, but breakpoints in Django itself usually don't work. It's not quite 100% repeatable,

Re: Correctly referencing media files in templates.

2007-10-24 Thread Leo Shklovskii
Awesome! Thanks for pointing that out Jonathan! I didn't find that when I was searching the Django Trac. -- --Leo Jonathan Buchanan wrote: > On 10/24/07, Leo Shklovskii <[EMAIL PROTECTED]> wrote: >> You also want to look here for a suggestion on how to access >> settings.

Re: Correctly referencing media files in templates.

2007-10-24 Thread Leo Shklovskii
(maybe in RequestContext?). -- --Leo Marty Alchin wrote: > On 10/24/07, Taft <[EMAIL PROTECTED]> wrote: >> I'd like to do something like this: >> >> >> >> ... >> > type="text/css" title="Style" /> >> ..

Re: template loading and generic views

2007-10-20 Thread Leo Shklovskii
Does anyone have any thoughts on this? is there a recommended way to lay out the templates on a per-application basis? does it make sense to change either of the two defaults to be consistent with each other? -- --Leo Leo Shklovskii wrote: > I've got a question about the templa

Re: Anyone running mod_python for Python 2.5 on Mac OS X?

2007-10-20 Thread Leo
a good concept but just wasn't standard enough or up-to-date enough. Also, I try to stick to Framework installs of Python whereever they come from... Good luck! Leo On Oct 20, 10:39 pm, Ulf Kronman <[EMAIL PROTECTED]> wrote: > Hi Graham, > thanks for your answer. Here some rep

Re: What is happening with mod_python

2007-10-18 Thread Leo
In particular, I find it's really useful to configure the mod_python test page as described at http://www.modpython.org/live/current/doc-html/inst-trouble.html; that will show you, among other things, the current sys.path you're using independent of Django.

template loading and generic views

2007-10-11 Thread Leo Shklovskii
? Or is there a better suggestion for how to deal with this situation? -- --Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To u

Re: Custom User model in django.contrib.auth

2007-10-02 Thread Leo
words, if you're trying to use session, admin, and so forth, tweaking the existing auth app might work, but I don't think duplicating it will work. Not an expert but just spent some time working through this stuff, Leo On Oct 2, 9:38 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>

Re: strange behavior of primary_key and ManyToManyField

2007-09-28 Thread Leo
ield into its' separate table. Sorry if that was confusing, but I think it's pretty much a requirement given the way the relational model works. Admittedly, there might be some circumstances where Django could "just know" to internally cascade the save()s in the right order... Leo On Sep

Re: guid's in python

2007-09-25 Thread Leo Shklovskii
representation by converting it from the byte sequence on the fly. Its far from optimal, but I suspect that this won't be the bottleneck in my app. :-) -- --Leo Tim Chase wrote: >>> I've been able to dig into this a little bit more and it >>> looks like django.utils.simplejson.decod

Re: guid's in python

2007-09-24 Thread Leo Shklovskii
I've been able to dig into this a little bit more and it looks like django.utils.simplejson.decoder doesn't support the '\x' escape character. Is this an intentional omission, a bug in Django, or just me misunderstanding Python? -- --Leo Leo Shklovskii wrote: > Hi, > > I

guid's in python

2007-09-24 Thread Leo Shklovskii
ixture: Invalid \escape: 'x' line 14 column 15 ... Is this a known issue? Is it a bug in the parsing? Is there a better way to represent the guid in my model? (I know Python 2.5 had a uuid object, but I'm still on 2.4). -- --Leo --~--~-~--~~~---~--~~ You received this mess

Mac OS X 10.4 + Python 2.4.3 + Django + Apache2 + mod_python

2007-09-24 Thread Leo
Back to Work on your App! Whew! At that point, I finished compiling and installing mod_python, then got to configuring my httpd.conf to reference mod_python, and then finally got back to actually making my Django app work ;-) Leo P.S. I should also point out that Graham advised not using mod_pyth

Re: Multiple primary keys

2007-09-05 Thread Leo
columns for Django's sake is unfeasible. Leo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

Re: create a model instance from dictionnary

2007-02-02 Thread Leo Soto M.
ta) Just use standard python syntax: MyModel(**data) -- Leo Soto M. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.

Customizing the M, in MVC

2005-10-06 Thread leo
would it be to write a custom model to utilize our setup? I tried looking through the docs, but I don't see anything directly addressing this. I'm about to jump directly into the src, but any front line experiences would be welcome. Thanks, leo