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
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
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
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
--~--
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
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
27 matches
Mail list logo