WHAT IS DJANGO?

2007-03-14 Thread DICK
I AM NEW TO THIS SITE AND THE REASON I AM POSTING THIS IS BECAUSE I WANTED TO DOWLOAD SOME SHEET MUSIC AND TABLATURE AT THIS LINK: cbsr26.ucr.edu/wlkfiles/Publications/JohnDowland/JohnDowland.html HOWEVER I CANT GET IN IT AND I WOULD LIKE TO BE ABLE TO BUT I DON'T KNOW HOW I'M HOPING SOMEBODY

dynamically instantiate a model at run time

2008-12-23 Thread dick...@gmail.com
i'm trying to do some instantiation of models, based on run time parameters. i'm new to django/python so not sure the term, but the relative java term is reflection. for example, if i have a model, in my django models.py: class Foo(models.Model): name = models.CharField(max_length=20) now i

xml -> django model

2008-12-23 Thread dick...@gmail.com
i'm working on a simple concept i'm sure others have solved, but i can't get it. basically, given some input, i parse it, find which objects to create, and do it. so with a model: class Foo(models.Model): name = models.CharField(max_length=20) and input xml of bar my view would parse t

Re: xml -> django model

2008-12-23 Thread dick...@gmail.com
yeah, but that's hardcoding in the "Foo" and "name" value, where they may be dynamic. Ie, imagine the xml is today would require the python code to instantiate a Bar(date="today") class. > Does this work? > > from myproject.test.models import Foo > f = Foo(name="bar") > f.save() > > Colin --~--

django deserialize and save new model object from xml

2008-12-23 Thread dick...@gmail.com
looking at the serialization serializers, is is possible to save "new" instance of a model object represented in xml? i'm getting an error: node is missing the 'pk' attribute, but basically, there isn't one, because i don't want the object retrieved from the db, i want to instantiate it from th

Re: xml -> django model

2008-12-23 Thread dick...@gmail.com
thanks DR! yeah, i'm just learning python, and was fuzzy on the object model stuff. works perfect. On Dec 23, 1:09 pm, Daniel Roseman wrote: > On Dec 23, 8:11 pm, "dick...@gmail.com" wrote: > > > > > i'm working on a simple concept i'm sure

specify alternative settings.py file at startup

2008-12-30 Thread dick...@gmail.com
i'm confused on the --settings option on manage.py. if i have a project call foo, i'd have in ./foo/settings.py to run: python manage.py runserver 8080 let's say i have a bar.settings.py which contains different values (like test database to use or something), i'm trying to run: python manage.

ROOT_URLCONF

2008-12-31 Thread dick...@gmail.com
was looking for some info on how ROOT_URLCONF setting is supposed to be used? i am trying something very simple. i have a single django project. there are two apps. i want to run one app, call it foo, with a specific settings file, and set of urls, and bar with something else. so, with amy

Rebuilding an application reusing the business logic

2008-09-02 Thread Dick Kniep
its own method of SQL invocation. So the question is simply if it is possible to use Django for this purpose, or that it is necessary to (re)write large chunks of code. Possibly this is all very clear to you, in that case I apologize for my ignorance. Cheers, Dick Kniep

inspectdb throws "_mysql_exceptions.Warning: Can't read dir of './test/' (errno: 13)"

2009-01-30 Thread dick...@gmail.com
pretty basic database i created using the "polls" tutorial, and now trying to test inspectdb (which i need to run against a legacy db). (fwiw, i tried creating a test dir, and didn't help) thanks, bash-3.2$ python manage.py inspectdb # This is an auto-generated Django model module. # You'll have

Re: inspectdb throws "_mysql_exceptions.Warning: Can't read dir of './test/' (errno: 13)"

2009-01-30 Thread dick...@gmail.com
for some more info, i debugged it down to this line: File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django/db/backends/mysql/introspection.py", line 70, in get_relations AND referenced_column_name IS NOT NULL""", [table_name]) it seems the table_name i

Install uWSGI on cygwin

2017-09-13 Thread Dick Pan
Hi, When I install uWSGI on cygwin by command: python2.7 uwsgiconfig.py --build one strange problem occur, undefined reference to `uuid_generate' on cygwin. but uuid.h exist in /usr/include/uuid/, and I checked GCC include path by command: echo | gcc -v -x c++ -E -, it's ok. At last, I have to

Re: Retaining text in search input boxes

2020-03-27 Thread Dick Arnold
make it an empty > string so you don't have none when attribute is empty . > > On Thu, Feb 20, 2020, 12:14 PM Dick Arnold > wrote: > >> I used a value of {{attribute value}}. so it is nor a fixed value, but >> is the value submitted. Doesn't work well for drop

Re: Retaining text in search input boxes

2020-03-29 Thread Dick Arnold
ld really appreciate it. Thanks for your previous ideas. On Saturday, February 15, 2020 at 1:16:18 PM UTC-6, OnlineJudge95 wrote: > > On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold > wrote: > >> I have a personnel database which has to be edited to keep it current. >> I have cre

How do I populate a table with data from a list file?

2019-12-04 Thread Dick Arnold
I have created a table by using css examples (similar to a spread sheet). However, all the examples that I have found populate the table manually by typing td entries in the html file. How can i accomplish this with django/Python code? I have looked everywhere I can find, but no luck so far

Can't find image files

2020-01-27 Thread Dick Arnold
My nice, new Django application is going along fairly well, although I have run into a couple of roadblocks and need some help. The first problem is my HTML Here's the error message I get on my terminal (command prompt) window: Not Found: /GAW.jpg [25/Jan/2020 11:51:50] "GET /GAW.jpg HTTP/1.1

Access to choice-value-constants from templates when using IntegerChoices

2020-01-29 Thread Bernhard Dick
Hi, I'm having trouble with the template-side when I'm converting my code to make use of the in version 3 introduced IntegerChoices-Class and I'd like to get some tips on doing it right. My version 2 Code looks like this: class StateModel(models.Model): STATE_DRAFT = 0 STATE_PUBLISHED

Re: Can't find image files

2020-01-30 Thread Dick Arnold
650 instead of 1647 I'm not getting the message any more Not Found: /GAW.jpg Can anyone see anything I'm doing wrong? On Monday, January 27, 2020 at 6:52:06 PM UTC-6, Dick Arnold wrote: > > My nice, new Django application is going along fairly well, although I > have run int

Re: Can't find image files

2020-01-30 Thread Dick Arnold
January 27, 2020 at 6:52:06 PM UTC-6, Dick Arnold wrote: > > My nice, new Django application is going along fairly well, although I > have run into a couple of roadblocks and need some help. The first problem > is my HTML statement: > > > > Here's the error messa

Re: Can't find image files

2020-01-31 Thread Dick Arnold
Didn't stay working for long. Needed one more change. the src also needs the application folder before the image file name. (contacts is the name of my applications folder.) On Monday, January 27, 2020 at 6:52:06 PM UTC-6, Dick Arnold wrote: > > My nice, new Django applicati

Retaining text in search input boxes

2020-02-15 Thread Dick Arnold
I have a personnel database which has to be edited to keep it current. I have created search parameters to find the person to edit. The exact name of the person is not always known, therefore the name field for searching can contain only a few of the characters. This can create a list of several

Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold
I used a value of {{attribute value}}. so it is nor a fixed value, but is the value submitted. Doesn't work well for drop down input fields. still researching. On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote: > > I have a personnel database which has to b

Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold
On Thursday, February 20, 2020 at 4:14:18 AM UTC-6, Dick Arnold wrote: > > I used a value of {{attribute value}}. so it is nor a fixed value, but is > the value submitted. Doesn't work well for drop down input fields. still > researching. > > On Saturday, February

Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold
I should have said {{attribute name}}, not value. On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote: > > I have a personnel database which has to be edited to keep it current. > I have created search parameters to find the person to edit. > The exact name of the p

REQUEST FOR GUIDES IN MY DJANGO CRYPTO EXCHANGE PROJECT

2021-01-13 Thread Emiedonmukumo Dick Boro
Hello Guys, This is my First Conversation in this Group. I want to create my Crypto Project using django, But I am having challenges with some areas in django. I need guides on : Login/Logout area, Signup, authentication, accepting and sending payments, also buy, that is the payment processor. Th

Re: getting error when i changed database sqllite3 to mysql

2019-10-06 Thread 'Dick in Texas' via Django users
I have tried to use a new, empty database, but that did not work. Still got the question if I have installed MySQLclient. Tried the statements from Desh Deepak. The install and import went well. However, when I tried to migrate, I got the message: module 'pymysql' has no attribute 'install_

Re: getting error when i changed database sqllite3 to mysql

2019-10-06 Thread 'Dick in Texas' via Django users
I just got by the ' 'install_as_MySqldb' error. SQL needed to be in upper case. Now, got new error. new error: mysqlclient 1.3.13 or newer is required; you have 0.9.3. Does it ever end? On Saturday, October 5, 2019 at 4:37:11 PM UTC-5, Gulsher Khan wrote: > > I trying to change default dat