hi,
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 commit
Django generates the shiniest, happiest pages of any web framework...
:)
http://samfeltus.com/pythonista/MardiGrasPreview.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
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 will not be on your path - and why debian packagers created that
weird directory
> TurboGears would be a terrible choice. Python does not do well on threads
> and has been known to lock up solid when executing a fork() out of a
> thread. Also, unless you feel your webserver should use very little of
> your computers resources, the threaded approach of TurboGears may not
Thanks Rock. Little less convenient from a file management standpoint,
but it works.
On Jan 17, 7:06 pm, Rock <[EMAIL PROTECTED]> wrote:
> Put shared in site-packages right alongside django. Problem solved.
--~--~-~--~~~---~--~~
You received this message because
I'm not sure that I see how this would be any different than adding
the correct directory to the pythonpath.
On Jan 17, 7:06 pm, Rock <[EMAIL PROTECTED]> wrote:
> Put shared in site-packages right alongside django. Problem solved.
--~--~-~--~~~---~--~~
You
> Create the sync script using the Python DB API directly (no Django
> ORM). And then trigger it either automatically with the cron job or
> manually, by wrapping that script inside django view. You may want to
> add `modified` DateTimeField to all your Django models and store the
> last sync
Put shared in site-packages right alongside django. Problem solved.
--~--~-~--~~~---~--~~
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
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 settings.py file.
Here is another good alternative:
Comment
On Jan 17, 6:28 am, "Lic. José M. Rodriguez Bacallao"
<[EMAIL PROTECTED]> wrote:
> Hi folks, I need to know how can I search, explore for codes
> inhttp://dpaste.com/
> I really can't figure out how.
You can't - it is not a database of snippets like djangosnippets.org,
but instead a pastebin -
On Jan 17, 4:01 pm, LRP <[EMAIL PROTECTED]> wrote:
> Hmmm, I'm wondering... I'd have little to contribute beyond my
> personal blunders, but I'd be delighted to work with any folks who'd
> like to prepare a Debian-specific addendum to the on-line Django
> tutorial.
Personally, I don't think the
On Jan 17, 2008 2:08 PM, code_berzerker <[EMAIL PROTECTED]> wrote:
> > So, though the settings.py you posted has TEMPLATE_DIRS with your '/
> > var/www...'directory listed, the one you are running with has no
> > TEMPLATE_DIRS.
>
> Yes I've noticed that, but I use settings.py listed above. Django
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, django-admin is in a shell-executable path.
I
Thanks, that did the trick!
Cheers,
Rodrigo
On Jan 17, 8:35 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 6:24 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > I am using the following in my urls.py:
>
> > (r'^media_/(?P.*)$', 'django.views.static.serve',
> >
On Jan 17, 2008 6:24 PM, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote:
>
> I am using the following in my urls.py:
>
> (r'^media_/(?P.*)$', 'django.views.static.serve',
> {'document_root':
> os.path.join(os.path.dirname(__file__), 'media').replace('\\','/')}),
>
> Notice the '_' after 'media.
>
>
I am using the following in my urls.py:
(r'^media_/(?P.*)$', 'django.views.static.serve',
{'document_root':
os.path.join(os.path.dirname(__file__), 'media').replace('\\','/')}),
Notice the '_' after 'media.
This allows me to access my media folder using for example:
Hi,
On Thu, Jan 17, 2008 at 10:50:50AM -0800, LRP wrote:
> django-admin.py is marked as executable, as is it's containing directory. So
> now I need to find out why it's not in the search path. But this is probably
> a question for another forum.
Maybe a little less time writing nautical prose
Hi,
On Thu, Jan 17, 2008 at 04:25:30PM -0600, Tim Chase 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.
>
> Just to prevent other "dunder-headed mistakes", I
Just go webfaction and save yourself a lot of pain later. They give
quite a bit of space, and if you really need insane space for media or
something, just keep a dreamhost (or whoever) account laying around.
Rodrigo Culagovski wrote:
> Can anybody recomend a shared-hosting that:
>
> a) is Django
> 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.
Just to prevent other "dunder-headed mistakes", I presume it's
truely named "django-admin.py", not just "django-admin". :)
Can anybody recomend a shared-hosting that:
a) is Django ready, with the svn-version installed or installable
b) is as good or better and as cheap or cheaper then Webfaction
c) gives you an insane amount of space (like Dreamhost)
Basically, I need a host for a new project, and am thinking of
I am quite new in Django, and trying to installing. I have the
following error when I want to run the command for installing Django:
C:\Django>setup.py install
running install
running build
running build_py
package init file '\django\__init__.py' not found (or not a regular
file)
error: package
In my base template:
In my ant build script:
/*
checksum is built into ant on most os's, so it's easier than using svn
*/
CSS_CHECKSUM
On Jan 16, 6:11 pm, Andrew <[EMAIL PROTECTED]> wrote:
> There are a bunch of articles about versioning your CSS/JS so you can
> set an infinite
We are starting to use geodjango (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()
The location field will eventually be populated using lat/longs from a
> So, though the settings.py you posted has TEMPLATE_DIRS with your '/
> var/www...'directory listed, the one you are running with has no
> TEMPLATE_DIRS.
Yes I've noticed that, but I use settings.py listed above. Django uses
db configuration from that file and other things too. Somehow
Yeah, that's the one I have. Like I said, everything works, 'cept
manage.py. I can get by without it, but it'd be nice to have the sql
functions and syncdb.
On Jan 17, 12:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hmm, that was the only obvious thought that I had. Just to make
>
Hmm, that was the only obvious thought that I had. Just to make
sure...you know that the _parent_ directory to "shared" is really the
one that you want to be on your Python path, correct?
On Jan 17, 12:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Jan 17, 12:29 pm, "[EMAIL
Hello,
Many many thanks for the thoughtful corrections and comments.
Particularly...
Karen Tracey for pointing out my dunder- headed mistake in running
django-admin.py from Python rather than shell command line.
I'm still having a problem since my shell can't seem to find django-
admin.py. I
On Jan 17, 12:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Try creating a blank file named __init__.py in the directory named
> "shared". That way, Python knows that it's a module.
>
Thanks floguy, but I've done that already. I see that it's compiled,
too. As near as I can tell,
Try creating a blank file named __init__.py in the directory named
"shared". That way, Python knows that it's a module.
On Jan 17, 11:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I asked this before, but I think it got lost in another issue. For
> those who've already seen it, I
I asked this before, but I think it got lost in another issue. For
those who've already seen it, I apologize for being repetitive.
What I'm trying to do is have a setup like:
project1/
project2/
shared/
With shared holding a bunch of apps both project 1 and project 2 are
using. I've got the
I'm embarrassed to admit I can't remember exactly which flash charting
solution I went with, but I believe it was XML/SWF:
http://www.maani.us/xml_charts/index.php?menu=Introduction
You can see it here:
http://classicmotorsports.net/project-cars/1970-datsun-240z/
Scroll down to "on the dyno",
On Jan 17, 12:10 pm, Nader <[EMAIL PROTECTED]> wrote:
> Hallo
>
> For a reason I had to customize the Manager class of a model:
>
> class QueueManager(models.Manager):
> def usedInputs(self, id):
> from django.db import connection
> cursor = connection.cursor()
>
Hallo
For a reason I had to customize the Manager class of a model:
class QueueManager(models.Manager):
def usedInputs(self, id):
from django.db import connection
cursor = connection.cursor()
cursor.execute("""
SELECT * FROM usedInput WHERE jobID=%s""" %
Somehow you are not using the version of the settings.py file you
think you are. See below.
On Jan 17, 11:26 am, code_berzerker <[EMAIL PROTECTED]> wrote:
> Trying to solve the problem I added following code to settings.py:
>
> ALLOWED_INCLUDE_ROOTS = (
> '/var/www',
> )
>
Just FYI, as far
On Jan 16, 3:41 am, stryderjzw <[EMAIL PROTECTED]> wrote:
> Thanks, everyone.
>
> I like this idea. That really helped. I hope this gets considered.
>
> Cheers,
> Justin
Ok, as soon as I get a chance, I'll get some docs and tests done and
post a ticket with a patch. That should greatly
Trying to solve the problem I added following code to settings.py:
ALLOWED_INCLUDE_ROOTS = (
'/var/www',
)
but it didnt help.
I skipped this error for a bit and continued with tutorial and heres
backtrace of what happened later and also my settings.py content.
it's smart, readable urls and lite regexp :) thanks :)
On 17 Січ, 16:52, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 7:19 AM, sector119 <[EMAIL PROTECTED]> wrote:
>
> > I decide to create delete_many view and I want to pass dynamic number
> > of args to it using urls:
>
> >
I've been considering this, but haven't gotten around to actually
doing so. Keep us posted if you have any success.
-Gul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
has anybody succesfully used "open flash chart" with django?
i´ve been downloading the files and installed it, but the (flash)data
isn´t displayed.
questions are:
- where do you put the files? guess OpenFlashChart.py should be
somewhere on the PYTHONPATH whereas the .swf and .js-files are in the
On Jan 17, 2008 7:19 AM, sector119 <[EMAIL PROTECTED]> wrote:
> I decide to create delete_many view and I want to pass dynamic number
> of args to it using urls:
>
> /streets/street/1/delete/
> /streets/street/12/3/4/delete/
> /streets/street/7/12/43/98/192/delete/
>
> what regexp in urls.py an
As far as I know there is no search engine present at dpaste.com.
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.
>
>
--~--~-~--~~~---~--~~
You
Hi folks, I need to know how can I search, explore for codes in
http://dpaste.com/
I really can't figure out how.
--
Lic. José M. Rodriguez Bacallao
Cupet
-
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
On Jan 16, 11:30 pm, Collin Grady <[EMAIL PROTECTED]> wrote:
> He did add it - 'test2.test'
I don't think so. If you look at the original post, the custom filters
file is in the app called 'app'. Taking that into account he would
need to add something like 'test2.app'.
On Jan 17, 2008 6:30 AM, maoxl <[EMAIL PROTECTED]> wrote:
> writing a html form is just NOT so complicated, and I really don't
> think it deserve a py package as luxury as the
> django.contrib.newfroms . why not just write html forms by hand .
> I'm a new comer to django, hoping somebody tell me
Writing a html form is a very repetitive task: design a form (generaly
taken from some db field), prepare the html, render it, get the
result, validate it, and save it to db.
newforms lib gathers all what this tasks have in commun (and some
times more) and i'am really convinced that it is far to
Hi folks, I need to know how can I search, explore for codes in
http://dpaste.com/
I really can't figure out how.
--
Lic. José M. Rodriguez Bacallao
Cupet
-
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
I'm not sure, but I think it's a problem with the psycopg backend
under Python 2.3.5.
When I loaded fixtures with Python 2.3.5 I got no errors and the
fixtures haven't been loaded.
When I loaded fixtures with Python 2.5 I got an error and when I fixed
it the fixtures were loaded.
I used the same
writing a html form is just NOT so complicated, and I really don't
think it deserve a py package as luxury as the
django.contrib.newfroms . why not just write html forms by hand .
I'm a new comer to django, hoping somebody tell me the philosophy
behind the design of newforms
I decide to create delete_many view and I want to pass dynamic number
of args to it using urls:
/streets/street/1/delete/
/streets/street/12/3/4/delete/
/streets/street/7/12/43/98/192/delete/
what regexp in urls.py an view definition have I to use in my
situation?
view definition, I think,
> I fully agree with you. This is generaly not a very good
> design, but i think we can do some exception for a very
> specific problems. For example, i found this very handy, when
> we have to support a multilingual db: getting the current
> language like this and use it to select the right
On Jan 17, 2008 5:36 AM, Grindizer <[EMAIL PROTECTED]> wrote:
> For example, i found this very handy, when we have to support a
> multilingual db: getting the current language like this and use it to
> select the right values in db can save us a lot of work, and result in
> a more clear views
I fully agree with you. This is generaly not a very good design, but i
think we can do some exception for a very specific problems.
For example, i found this very handy, when we have to support a
multilingual db: getting the current language like this and use it to
select the right values in db
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
By the way, I've noticed that template tag {% edit_translation %} in
this project assumes oldforms
Alex Koshelev пишет:
| http://code.google.com/p/django-multilingual/
| Helps you to have translations for database entries
-BEGIN PGP
On Jan 17, 5:33 am, Collin Grady <[EMAIL PROTECTED]> wrote:
> On Jan 16, 11:22 am, code_berzerker <[EMAIL PROTECTED]> wrote:
>
> > I put my templates somewhere in /var/www/ just beside project code and
> > media files.
>
> If /var/www is a web root, your project code should *not* be there.
>
On Jan 16, 8:36 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> 1. settings.TEMPLATE_LOADERS contains the entry
> django.template.loaders.filesystem.load_template_source before the
> entry django.template.loaders.app_directories.load_template_source
the order is correct
> 2. the path specified
On Jan 17, 2008 5:00 AM, Grindizer <[EMAIL PROTECTED]> wrote:
> - If you want to retrieve the current logged user at model level, this
> is a little more complicated, because models are note designed to see
> what happen at process level, but it still possible, look at this:
Any code which
- If you want retrieve all Person objects that can be viewed by a
user, this is possible with this query:
persons = Person.objects.filter( Q(owner=my_user) | Q(public=True) )
my_user is the current logged user, so this query, in designed to be
executed in a view function.
- If you want to
On 17 янв, 05:58, otonk <[EMAIL PROTECTED]> wrote:
> hi, i am currently designing two or more django application, one
> application act as the master application, contains all the data, the
> other application has partial function of the master application. The
> master database belongs to the
Its a new revolution in finding inormation on the internet
I used this to get most of my info on F1 and fooball
Check out http://askhomer.co.nr/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Ok thanks got it.
On Jan 17, 1:20 pm, shabda <[EMAIL PROTECTED]> wrote:
> Save yourself the trouble of writing a view function and use the
> generic view
> direct_to_templatehttp://www.djangoproject.com/documentation/generic_views/#django-view...
>
> On Jan 17, 12:50 pm, "Karen Tracey" <[EMAIL
>
> ...well, the local folks are friendly enough.
>
> Last I washed upon these sands, capsized on the first leg of my maiden
> voyage, I was advised that my vessel, django 0.95.1-1, running on
> Linux Debian Etch, was a relic beyond salvage.
>
> So back in port, I smash a magnum of champagne
Save yourself the trouble of writing a view function and use the
generic view direct_to_template
http://www.djangoproject.com/documentation/generic_views/#django-views-generic-simple-direct-to-template
On Jan 17, 12:50 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Jan 17, 2008 2:32 AM,
63 matches
Mail list logo