On 17 Jan 16:01, LRP wrote:
>
> Hello,
>
> Wow. This list is not only friendly, it parties!
>
> Thanks to tips from Jeff Anderson, Tim Chase, and Forest Bond, I now
> have start-up directories.
>
> The trick: Debian redirects django-admin.py to django-admin. And, as
> Forest Bond points out, d
Hi Kenneth,
I have very similar situation in my projects (some our projects, we
develop 4 version in the same time - client specific versions).
We do it in this way (we are using SVN):
/trunk/ <- latest version
/branches/product-1.0
/branches/product-1.1
/branches/product-1.2
/tags/product-1.0.0
I am trying to write a shell script that do whatever needs to be done between
sudo apt-get install postgresql python-psycopg
and
manage.py syncdb
for MySql, I use this to generate somehting I can pipe into the CLI:
print """
DROP DATABASE IF EXISTS %(db)s;
CREATE DATABASE %(db)s;
GRANT ALL
On 18 Jan 02:26, Carl Karsten wrote:
>
> I am trying to write a shell script that do whatever needs to be done between
> sudo apt-get install postgresql python-psycopg
> and
> manage.py syncdb
>
> for MySql, I use this to generate somehting I can pipe into the CLI:
>
> print """
> DROP DATABAS
What about an extension to the Queryset like this:
User.objects.filter(username__istartswith="a").update(is_active=True)
it would trigger something like this:
UPDATE auth_user SET is_active=1 WHERE username LIKE "a%"
This syntax (if it existed) would solve the following problems
the cur
On 17 Jan 2008, at 1:52 pm, Lic. José M. Rodriguez Bacallao wrote:
Hi folks, I need to know how can I search, explore for codes in
http://dpaste.com/
I really can't figure out how.
That's not really what dpaste is for. It's more a temporary place to
hold code so you can show it to someone e
Hi,
On Fri, Jan 18, 2008 at 10:30:53AM +0530, Kenneth Gonsalves wrote:
> On 18-Jan-08, at 12:20 AM, LRP wrote:
> > I'm still having a problem since my shell can't seem to find django-
> > admin.py. I know it's there; found it in /usr/share/python-support/
> > python-django/django/bin.
>
> this wi
On Jan 18, 1:11 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 2:08 PM, code_berzerker <[EMAIL PROTECTED]> wrote:
>
[...]
> Check the value of settings.__file__ from python manage.py shell after
> importing settings, just to make sure it is using the file you think it is.
> I do
On Jan 18, 2:01 am, Rock <[EMAIL PROTECTED]> wrote:
> The templates have to be within a directory named "templates" found in
> the /var/www/ directory.
> BUT DON'T PUT TEMPLATES THERE! Put the templates dir in the same
> directory as your settings.py
> file and set the path accordingly in the se
I just stumbled upon strange behavior of django-0.96.1 and
postgresql-8.2 combo. Essentially, different versions of postgresql-8.2
client libraries (or server, I am not a PostgreSQL expert) used with
Django-0.96.1 ORM produce different results for lookups that use ILIKE
(eg. iexact, icontains). Wh
thanks, this works fine.
I´ll still try to get "open flash chart" working and I´ll post my
experience here.
patrick.
On 17 Jan., 18:23, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm embarrassed to admit I can't remember exactly which flash charting
> solution I went with, but I believe i
On 18-Jan-08, at 4:57 PM, Forest Bond wrote:
>>> Then there's Kenneth Gonzales. All I can say is, "hey dude,
>>> that's not
>>> very friendly."
>>
>> well, I was one of the people who told you *not* to rely on debian's
>> apt-get for installing django - django is developing too fast for
>> pac
On Jan 18, 12:54 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> Basically, PostgreSQL is trying to be more standards compliant by
> default, at the cost of slightly impacting backwards compatibility. You
> might also want to look at escape_string_warning (setting it to false,
> since the warn
I posted this note at comp.lang.python and the response there was
that this all works outside of Django. What is the problem with
using MySQL OperationalErrors with Django?
-
In our database code (we are using django v0.96) we wanted to catch
and handle MySQL OperationalErrors. We us
On 18 Jan 07:16, Tim Chase wrote:
>
> >> The trick: Debian redirects django-admin.py to django-admin. And, as
> >> Forest Bond points out, django-admin is in a shell-executable path.
> >
> > Yup - because debian policy dictates that things in /usr/bin should
> > *not* have an extension telling y
I'm serving up 6 Django apps on Ubuntu Gutsy with Ngninx 0.5.26 for a
frontend and Apache 2.2.4 prefork MPM (tried both mod_python and mod_wsgi)
serving Django rev. 6898. MySQL 5.045, Python 2.5.1
These are low traffic sites, 2 a bit more complex, 1 Satchmo install, and 3
very simple sites mostly
Do you have "DEBUG = True" in your Django settings file?
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
On Jan 18, 2008 8:48 AM, Peter Baumgartner <[EMAIL PROTECTED]> wrote:
> I'm serving up 6 Django apps on Ubuntu Gutsy with Ngninx 0.5.26 for a
> frontend and Apache 2.2.4 prefork MPM (tried both mod_python and mod_wsgi)
> serving Django rev. 6898. MySQL 5.045, Python 2.5.1
>
>
That's 6 projects, no
> But why django use this path but not that was defined at
> settings.MEDIA_ROOT?
Because ADMIN_MEDIA_PREFIX is set to "/media/" so the url "http://
localhost:8000/media/" makes django point to the admin media
directory.
To serve your own media juste choose another url for that, may be like
thi
Hi All!
When I try to get http://127.0.0.1:8000/media/ I got Permission
denied: /home/sector119/devel/django_src/django/contrib/admin/media/
But why django use this path but not that was defined at
settings.MEDIA_ROOT?
part of my urls.py:
import settings
if settings.DEBUG:
urlpatterns += p
David Marquis napisał(a):
> 'Can't pickle function objects'
>
> I can't seem to understand why on earth Django is trying to pickle a
> 'function' into the user's session.
> This error often happens when users leave their browser open and try
> to continue the process later on (a few hours la
Hi folks,
My first post on the forum! I've been watching the threads for a
while, but now I need your help :)
For a recent project, my users sometimes get the following error:
(this error is output raw to the user, as text sent back to the
browser as the response content)
**
Mod_python
Hi,
We are running django on mod_python with PythonDebug set to Off, and
PythonAutoReload set to Off and we see that the calls to
ContentType.objects.get_for_model(Model) hit the database any way. Any
clue?
Thanks,
Julien
--~--~-~--~~~---~--~~
You received this m
>> The trick: Debian redirects django-admin.py to django-admin. And, as
>> Forest Bond points out, django-admin is in a shell-executable path.
>
> Yup - because debian policy dictates that things in /usr/bin should
> *not* have an extension telling you which language they're implemented
> in (*wa
And it's also important to not really delete records from database.
Use the 'delete' boolean field to mark unneeded records.
On 18 янв, 06:18, otonk <[EMAIL PROTECTED]> wrote:
> > Create the sync script using the Python DB API directly (no Django
> > ORM). And then trigger it either automatically
On Fri, 2008-01-18 at 12:30 +0100, Jarek Zgoda wrote:
> I just stumbled upon strange behavior of django-0.96.1 and
> postgresql-8.2 combo. Essentially, different versions of postgresql-8.2
> client libraries (or server, I am not a PostgreSQL expert) used with
> Django-0.96.1 ORM produce different
I'm not sure why you're getting the error that you are seeing, but if
you want to try out Django on Windows without the hassle of
installation, you can check out my site:
http://www.instantdjango.com
There is a download that provides a portable Django development
environment on Windows, no inst
I am using memcached as my backend for cache, but I am not sure how to
check the statistics on memcached, to see what it is actually doing. I
can tell it is working, but I want to see some actual stats on how
well it is working. I've heard there is a "stat" command for
memcached, and I tried doing
On Jan 18, 2008 10:08 AM, sector119 <[EMAIL PROTECTED]> wrote:
>
> Hi All!
>
> When I try to get http://127.0.0.1:8000/media/ I got Permission
> denied: /home/sector119/devel/django_src/django/contrib/admin/media/
>
> But why django use this path but not that was defined at
> settings.MEDIA_ROOT?
OK,
So I know Linux / Apache pretty well, never really done any hard-core
stuff with it. Now I want to use apache on my macbook (intel) OSx
10.5 (upgrade),but have no clue about how to do it.
Googling for how to install mod_python results in a lot of issues from
what I can find, 64bit vs 32bit,
Greeting, Carl! Fri, Jan 18, 2008 at 02:26:33AM -0600, carl wrote:
> I am trying to write a shell script that do whatever needs to be done between
> sudo apt-get install postgresql python-psycopg
> and
> manage.py syncdb
>
> for MySql, I use this to generate somehting I can pipe into the CLI:
I also like the way xmls/wf works. it´s very easy (to setup and
install). unfortunately, it just doesn´t look so good (to me). I´m not
much of a programmer myself - and for our current project, the "look"
is very important. I´ll try some other tools as well ...
keep you updated.
patrick
On Jan
I guess I wasn't clear on the PURPOSE to do it, experience, not
practicality.
I love the built-in django server, it's awesome, how much easier could
anyone make it, I think none. But, I wanted to get ready for what it
might be like to deploy django at a hosting facility, or maybe even on
a home
Hi,
I need to use a select box in my Django application. But i want it to
be filled dynamically when it is clicked so that the user will select
some specified values that are taken from the database.
Instead of that select box i may use a new page that will be opened
when a button or check box c
Sweet, thanks!
Do you know how to use the cmemcache library instead of the python-
memcached library to do what effbot did? Because I'm pretty sure you
can't have both modules, because the Django documentation says to pick
ONE. And since they emphasized it, I think they mean it. Also it seems
tha
On 18-Jan-08, at 9:54 PM, William Siegrist wrote:
> If the spelling changes are in 1 file, and the new feature is in
> another file, can't you "svn update" just the spelling change file
> and not the new feature file? And if they are in the same file, I
> think the --revision option to svn
Is python-memcached the same as the memcache he is trying to import in
his memcached_status.py?
http://effbot.org/zone/django-memcached-view.htm
On Jan 18, 1:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I take it back. I see now that python's memcached module is named
> 'memcache', no
On Jan 19, 8:49 am, John M <[EMAIL PROTECTED]> wrote:
> I guess I wasn't clear on the PURPOSE to do it, experience, not
> practicality.
>
> I love the built-in django server, it's awesome, how much easier could
> anyone make it, I think none. But, I wanted to get ready for what it
> might be like
On Jan 19, 1:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We are running django on mod_python with PythonDebug set to Off, and
> PythonAutoReload set to Off and we see that the calls to
> ContentType.objects.get_for_model(Model) hit the database any way. Any
> clue?
Do note t
John M wrote:
> OK,
>
> So I know Linux / Apache pretty well, never really done any hard-core
> stuff with it. Now I want to use apache on my macbook (intel) OSx
> 10.5 (upgrade),but have no clue about how to do it.
>
> Googling for how to install mod_python results in a lot of issues from
> wh
Greeting, Marinho! Fri, Jan 18, 2008 at 04:31:48PM -0200, marinho wrote:
> > I'd see this app [1], but it has no files in the repository.
> >
> > Does somebody knows a code, tool or something about this? (I wanna
> > write only what is left)
Thing is you need to stick to one of the API of SMS-
If the spelling changes are in 1 file, and the new feature is in
another file, can't you "svn update" just the spelling change file and
not the new feature file? And if they are in the same file, I think
the --revision option to svn update might also help.
-Bill
On Jan 17, 2008, at 11:55
Thanks for the macports idea, i'll have a look.
On Jan 18, 10:13 am, William Siegrist <[EMAIL PROTECTED]> wrote:
> I recommend installing apache, python, and mod_python via MacPorts.
> Thats what I do to run django on various Mac platforms. Granted, I
> work with the MacPorts project, so maybe I'
Greeting, John! Fri, Jan 18, 2008 at 09:55:55AM -0800, retireoncsco wrote:
>
> OK,
>
> So I know Linux / Apache pretty well, never really done any hard-core
> stuff with it. Now I want to use apache on my macbook (intel) OSx
> 10.5 (upgrade),but have no clue about how to do it.
>
> Googling
Hello everybody,
I need to write an app to send SMS messages to the most mobile
companies I can, like Gmail does.
I'd see this app [1], but it has no files in the repository.
Does somebody knows a code, tool or something about this? (I wanna
write only what is left)
--
Marinho Brandão (José M
sorry, the [1] is this:
http://code.google.com/p/django-sms/
2008/1/18, Marinho Brandao <[EMAIL PROTECTED]>:
> Hello everybody,
>
> I need to write an app to send SMS messages to the most mobile
> companies I can, like Gmail does.
>
> I'd see this app [1], but it has no files in the repository.
> We are starting to usegeodjango(revision 7003) and are having
> problems using the api to calculate distance.
>
> class Airport(models.Model):
> icao = models.CharField('ICAO', max_length=4)
> location = models.PointField()
>
First, a reminder to add the `objects.GeoManager()` to your m
I'm getting this after generate a xml from a semi-csv file. Other
times I get this but not found what this mean.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I take it back. I see now that python's memcached module is named
'memcache', not 'memcached'. I'm not sure what I was thinking.
On Jan 18, 1:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I think the problem is that python's memcached module is named
> 'memcached', and also your app i
Just a note to everyone, if you are giving out code used for
developmental purposes like the code found here:
http://effbot.org/zone/django-memcached-view.htm
Don't do this in your code:
try:
#do something
except:
raise http.Http404
Raising a 404 doesn't give you any clue as to what the p
Hi,
You know that you can send SMS messages to most phones using an e-mail
address ?
[EMAIL PROTECTED]
The exact domain name is specific to each mobile phone provider. This
information can be obtained from the provider's web site.
For more : http://en.wikipedia.org/wiki/SMS_gateways
I don
I recommend installing apache, python, and mod_python via MacPorts.
Thats what I do to run django on various Mac platforms. Granted, I
work with the MacPorts project, so maybe I'm biased, but I also came
from a linux environment and find MacPorts to be very useful for
package management.
For whatever it's worth, I messed around with open flash charts a fair
bit before going with the xml-based solution... I never got it
working, either, got close, but could never really make sense of the
output strings. But then, I'm not much of a programmer. I do know that
I found the xml-based ch
I would like to install geodjango but have an existing django 0.96 installed
on my devel server. The instructions for geodjango say check the svn then ln
-s to /path/to/sitepackages/django. My question is will this in any way
affect the current install. If I am running .96 of django and I install
g
Last June there was some work done on iterative rendering of
templates, generating the out on the fly, directly down the connection
to the browsers rather than rendering the whole thing in memory and
then sending it. The issue turned out to be more complicated than it
appeared on the surface, and
On Jan 18, 2008 4:03 AM, Wolfram Kriesing <[EMAIL PROTECTED]> wrote:
>
> What about an extension to the Queryset like this:
>
> User.objects.filter(username__istartswith="a").update(is_active=True)
>
> it would trigger something like this:
>
>UPDATE auth_user SET is_active=1 WHERE username
Great, that looks like it will serve its purpose. I am trying to get
it to work, and I am messing it up somehow. I made it into and app.
memcached/
__init__.py
memcached_status.py
templates/
memcached/
memcached_status.html
and I put memcached into my settings file
On Jan 18, 2008 12:40 PM, Matthew Miller <[EMAIL PROTECTED]>
wrote:
> I would like to install geodjango but have an existing django 0.96installed
> on my devel server. The instructions for geodjango say check the
> svn then ln -s to /path/to/sitepackages/django. My question is will this in
> any
Perhaps try removing all comment cruft from your
settings.TEMPLATE_DIRS so it's just this:
TEMPLATE_DIRS = ('/var/www/test/djtest/tpl',) # <-- remember to put a
trailing comma here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
Hai friends
Log on to http://ns-ismail.page.tl/ to get (download) free software's
and all other accessories. To get free gift's Log on to
http://ns-ismail.page.tl/
and so on.
The site consist of many useful material's
Like Google search, games, and etc.You can earn money through
http://ns-ismail.
http://effbot.org/zone/django-memcached-view.htm
On 18 янв, 19:51, bfrederi <[EMAIL PROTECTED]> wrote:
> I am using memcached as my backend for cache, but I am not sure how to
> check the statistics on memcached, to see what it is actually doing. I
> can tell it is working, but I want to see some
Hakan,
Assuming you are using Django 0.96.1, make sure you're installing from
a top folder in your drive.
E.g.: d:\django
Not something like: d:\django\django\
That worked for me.
Regards,
Guillermo
--~--~-~--~~~---~--~~
You received this message because you
Hi Kenneth,
> I have a site in production and being developed at the same time - a
> common django usecase I am sure. This is the first time I am
> developing a site with a team comprised of several remote
> contributors also. My previous teams were all in the same lab.
> Currently everyone with
On Jan 18, 2008 10:51 AM, Robert Swerdlow <[EMAIL PROTECTED]> wrote:
> I posted this note at comp.lang.python and the response there was that
> this all works outside of Django. What is the problem with using MySQL
> OperationalErrors with Django?
>
> -
> In our database code (we are usin
Anton, that was sort of my question, how do I complete your second
idea but w/o the recompile. The mac already comes with apache 2
installed and running rather well, how hard would it be to add
mod_python or mod_wsgi to that environment?
Thanks
John
On Jan 18, 10:09 am, "Anton P. Linevich" <[E
No.
On Jan 18, 2008 9:23 AM, James Bennett <[EMAIL PROTECTED]> wrote:
>
> Do you have "DEBUG = True" in your Django settings file?
>
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of
> correct."
>
> >
>
--~--~-~--~~~---~--~~
You received
I think the problem is that python's memcached module is named
'memcached', and also your app is named 'memcached'. Maybe try
renaming your app to 'memcached_status' or something and see if that
works better.
Thanks,
Eric Florenzano
On Jan 18, 12:38 pm, bfrederi <[EMAIL PROTECTED]> wrote:
> Gre
> Is python-memcached the same as the memcache he is trying to import in
> his memcached_status.py?
Yes.
By the way, I just figured out why it's not working: your urls.py file
has a small typo. It's pointing to "memcached.memcached_status",
however the function that you defined is called cache_s
Thakn you Graham, thats what I'm talking about. I just finished
trying to compile mod_python, and it's not working, and I figured it
was something like that.
So it's off to try mod_wsgi.
Thanks
J
On Jan 18, 4:29 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jan 19, 8:49 am, John M <[EM
69 matches
Mail list logo