http://docs.djangoproject.com/en/dev/howto/legacy-databases/#howto-legacy-databases
Here is a guide that will help you to build model from current
database structure. maybe you need to do some optimizations on it.
--
Regards
Dulmandakh
--~--~-~--~~~---~--~~
You
Hello all.
Just now I've deployed my first django web app. it's kind of address
book. everything went smoothly.
http://docs.djangoproject.com/en/dev/ref/contrib/admin/ says that
search_fields is case insensitive. but when I search some person using
django admin, it shows exact matches with case.
> Use search_fields = ['name'] in the corresponding
> class inside admin.py
I did. Actually my text is Cyrillic. Just now I tested searching
sample latin or english text, and search workin fine. Is it problem
with non-english text? if so how i can fix it, and make work?
--
Re
> "(A bug: SQLite only understands upper/lower case for 7-bit Latin
> characters. Hence the LIKE operator is case sensitive for 8-bit iso8859
> characters or UTF-8 characters. For example, the expression 'a' LIKE 'A' is
> TRUE but 'æ' LIKE 'Æ' is FALSE.)."
Got it.
> So it sounds like you will nee
I use apache2's mpm-worker which is threaded and means very fast,
requires less resource. And use PHP5 as a fastcgi, django (through
python) also as fastcgi.
This setup maybe difficult compared to apache modules based setup. but
proven to be very fast, and no side effects.
--
Regards
Dulmanda
> Hello folks, I have aready used python only in desktop. About 1 a week
> ago I installed the Django 1.0 on Fedora 9. I wonder about the
> djangobook, its version is 0.96 or 1.0?
book's version is 1.0, but written for 0.96.
--
Regards
Dulmandakh
--~--~-~--~~~---~-
> I'm a newbie to Django, in my application i'm uisng Sqlite3 as my
> Database. I've created the models as per my requirement. The database is
> succesfully synchronized. After this how can i view the tables (like select
> statement in Postgres) to check whether my data is successfully inserted
> when i use my hosting provider (mediatemple) which i believe is
> running django via a fast cgi container setup. overall, the setup
> seems to work, no errors, definately calling php.py, and detects the
> php:file.php tags, but no php is converted into the template output.
> blank text, not even
> The one thing left that I'd like to do is set up Django to run
> continuously, even when there are no http requests. My application
> runs a bunch of periodic background tasks in addition to serving up
> web content, and it seems that after a few minutes with no web
> activity, the app is term
> I want to use per-view cache with memcached and low-level cache with
> filesystem caching.
what's the advantage of having both of them?
--
Regards
Dulmandakh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
> I was trying to parse their data and replace it empty date fields
> values by a '-00-00', no luck.
maybe you should try to set default value in database engine. as I
know mysql supports it, and inserts default value if no value has been
provided.
--
Regards
Dulmandakh
--~--~-~--
> I just set up a few fixtures for some of my models and realized that
> every time I syncdb it changes the existing data in my database. I
> assume this is normal behavior, but I was wondering if it is possible
> to have the fixtures only *add* data and not change it?
As I understand, and also a
> Ok. But are the configuration lines any different or will they
> change. If anyone has a good tutorial written could you please post
> it. Also, What does this line mean ?
> SetEnv DJANGO_SETTINGS_MODULE mysite.settings
See http://httpd.apache.org/docs/2.2/mod/mod_env.html. I suggest you
to
Please follow instructions on
http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ to
setup django and mod_python.
And it's interesting that how do you know that mod_python is working?
--
Regards
Dulmandakh
--~--~-~--~~~---~--~~
You received this m
> Thank you, but as I've mentioned I have tried to follow these
> instructions and have had no luck. Why is it instructing me to
> configure my httpd.conf file when my sub domain exists in sites-
> available/sites-enabled?
It seems that you use Debian based distro. Debian based systems have
sepa
> File
> "/usr/local/python2.5/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg/MySQLdb/__init__.py",
> line 74, in Connect
>
> File
> "/usr/local/python2.5/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg/MySQLdb/connections.py",
> line 170, in __init__\n
chinese and some other complex or unicode characters takes more than
one byte to be stored. but as I know char(250) means 250 bytes or you
can store about 80 chinese chars if we assume 1 char takes 4 bytes.
then you need to change model, and manually alter table column.
--
Regards
Dulmandakh
-
17 matches
Mail list logo