Another interesting library just launched is Webbot (
http://www.webbot.ws/Home ). This is actually a python lib intended for
django and app engine that lets you write generalized front end UI's using
python and has a GUI that helps you build them by generating python for the
UI without writing any
I think it is the first solution that you have proposed, but I can't figure
out how to use it. Also, is there a way to make sure that the ID is
automatically taken? With a proper publisher for loop I would like all the
lists of movies for each actor.
This is my urls.py
from django.conf.urls.de
I think it is the first solution that you have proposed, but I can't figure
out how to use it. Also, is there a way to make sure that the ID is
automatically taken? With a proper publisher for loop I would like all the
lists of movies for each actor.
This is my urls.py
from django.conf.urls.de
Sorry, looks like I was wrong about batman. It can work with django, I just
forget sometimes that more people watch movies than write web apps.
On Thu, Apr 18, 2013 at 3:34 AM, Doug Snyder wrote:
> Another interesting library just launched is Webbot (
> http://www.webbot.ws/Home ). This is actu
On Wed, Apr 17, 2013 at 11:18 PM, Matt Andrews wrote:
> Hi all.
>
> Having performance problems with my Django app. I've posted here before
> talking about this: one theory for my slowness woes was that I'm using raw
> SQL for everything after getting sick of Django doing things weirdly
> (duplica
On Wed, Apr 17, 2013 at 7:38 PM, frocco wrote:
> Hello,
>
> Can someone give me an example of running a cronjob hourly?
> I am on webfaction and cannot get this working.
>
> I tried
>
> @hourly /usr/local/bin/python2.7 ~/webapps/ntw/myproject/manage.py runjob
> submit
>
> I get no email
>
> If I S
On Thursday, 18 April 2013 10:45:40 UTC+1, Tom Evans wrote:
> On Wed, Apr 17, 2013 at 11:18 PM, Matt Andrews
> >
> wrote:
> > Hi all.
> >
> > Having performance problems with my Django app. I've posted here before
> > talking about this: one theory for my slowness woes was that I'm using
>
I've searched this group for threads related to multitable inheritance.
The one most similar to my query so far was titled "multiple children in
multitable inheritance", from Apr. 2008. Like the original poster, I'd
thought of Bar as a possible subclass of Place, which might share the same
Pl
The first solution works like this:
If you create a foreign key from ModelA to ModelB, Django automatically
create something like B.modela_set that works just like the objects
attribute, but just for the A objects that are related to B, right?
That's why you can du stuff like attore.film_set.all()
Yes, it does look like template tags are taking some time. Is the page
huge? Are you doing a ton of formatting? Is there something you could maybe
move to server-side?
Also, this might help with caching bits of your output:
On Thu, Apr 18, 2013 at 6:17 AM, Matt Andrews wrote:
>
> On Thursday,
Hit send too soon:
https://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-caching
On Thu, Apr 18, 2013 at 8:39 AM, Shawn Milochik wrote:
> Yes, it does look like template tags are taking some time. Is the page
> huge? Are you doing a ton of formatting? Is there something you cou
Hi,
a few days ago i decided to stop using the django-comments framework,
i removed the entry from settings.py and deleted the tables in my database.
Now if i want to delete an user via the admin interface i get an error
in my apache/error log (see below)
The strange thing is, if i'm using the
On Thu, Apr 18, 2013 at 5:11 AM, M Hill wrote:
> I've searched this group for threads related to multitable inheritance. The
> one most similar to my query so far was titled "multiple children in
> multitable inheritance", from Apr. 2008. Like the original poster, I'd
> thought of Bar as a possi
Here's an example of something taken straight from my crontab from a
WebFaction account:
44 * * * * cd ~/webapps/awstats_milocast;./update_awstats.sh
This runs on minute 44 of every hour. There are five "time" parameters. The
first one is "minute." If you set a number there, it'll run on that min
I am trying to view my site in japanese. I have create the translations and
compiled them with compilemessages.
In my urls.py I have
urlpatterns = i18n_patterns('',
#...)
Settings.py
LANGUAGE_CODE = 'en-us'
#Used for translationsgettext = lambda s: sLANGUAGES = (
('en', gettext('Eng
On Thu, Apr 18, 2013 at 4:42 PM, Cody Scott wrote:
> I am trying to view my site in japanese. I have create the translations and
> compiled them with compilemessages.
>
> In my urls.py I have
>
> urlpatterns = i18n_patterns('',
> #...
> )
>
>
> Settings.py
>
>
> LANGUAGE_CODE = 'en-us'
>
> #Us
Thanks, I went here http://www.i18nguy.com/unicode/language-identifiers.html
ctrl+
f "japanese" saw jp on the left hand side. I thought ja was a localization
of jp so it would be jp-ja.
On Thursday, 18 April 2013 11:42:37 UTC-4, Cody Scott wrote:
>
> I am trying to view my site in japanese. I h
On Thu, Apr 18, 2013 at 5:23 PM, Cody Scott wrote:
> Thanks, I went here http://www.i18nguy.com/unicode/language-identifiers.html
> ctrl+ f "japanese" saw jp on the left hand side. I thought ja was a
> localization of jp so it would be jp-ja.
>
The columns listed on that page are "region code", "
I agree that link is much better, I got the other one from settings.py
On Thu, Apr 18, 2013 at 12:41 PM, Tom Evans wrote:
> On Thu, Apr 18, 2013 at 5:23 PM, Cody Scott
> wrote:
> > Thanks, I went here
> http://www.i18nguy.com/unicode/language-identifiers.html
> > ctrl+ f "japanese" saw jp on th
There are a lot of different places where that can be coming from (anywhere
that's trying to import django_comments for example).
Try doing an ack-grep in your repo for any mention of django_comments that
you might have missed when you were removing the app.
On Thursday, April 18, 2013 7:17:07
I have my models.py :
class Hotel(models.Model):
name = models.CharField(max_length=20)
currency = models.ForeignKey(Currency)
class Currency(models.Mode):
code = models.CharField(max_length=3)
name = models.CharField(max_length=10)
Whenever the currency field in hotel is chang
>
> I have my models.py :
>
> class Hotel(models.Model):
> name = models.CharField(max_length=20)
> currency = models.ForeignKey(Currency)
>
> class Currency(models.Mode):
> code = models.CharField(max_length=3)
> name = models.CharField(max_length=10)
>
>
> Whenever the currency field in hotel
I have marked text for translation, and also database content with the
dbgettext mdoule.
So I do:
syncdb
add some content
dbgettext_export
makemessages -l ja
add all of the translations
compilemessages
Then I change the /en/ to /ja/ to see the page in Japanese, but only two
things are transl
Running into a similar issue on my own project, seems to be when you try an
cache a model which has a related model which in turn has a many to many
field. So for example, I have an instance of a Student, which has a
ForeignKey to Book, which in turn has a ManyToMany to Author. If I try and
cac
On Thursday 18 April 2013 10:21:35 Richard Jelte wrote:
> There are a lot of different places where that can be coming from (anywhere
> that's trying to import django_comments for example).
>
> Try doing an ack-grep in your repo for any mention of django_comments that
> you might have missed when
On Thursday 18 April 2013 22:04:11 Michael Muster wrote:
> Hi,
>
> I don`t know what ack-grep does, but i think
>
> find . -type f | grep django_comments
>
> should be something similar.
Sorry, this should be:
find . -type f -exec grep -l "django_comments" {} +
I removed one
Sorry for spamming, but after removing
another entry from views.py and restarting apache
it works,
Thanks for your help!
On Thursday 18 April 2013 22:26:10 Michael Muster wrote:
> On Thursday 18 April 2013 22:04:11 Michael Muster wrote:
> > Hi,
> >
> > I don`t know what ack-grep does, but i t
I wouldn't say huge (see the page/view in question at
http://www.scenepointblank.com) -- I grab a bunch of things and then
display them, mostly truncated (with HTML stripped out, usually for the
homepage). The custom template tags take a bunch of arguments (say for a
news post, it takes argumen
On 18 huhti, 22:07, Greg H wrote:
> Running into a similar issue on my own project, seems to be when you try an
> cache a model which has a related model which in turn has a many to many
> field. So for example, I have an instance of a Student, which has a
> ForeignKey to Book, which in turn has a
On 18 huhti, 20:34, deepankar bajpeyi wrote:
> I have my models.py :
>
> class Hotel(models.Model):
> name = models.CharField(max_length=20)
> currency = models.ForeignKey(Currency)
>
> class Currency(models.Mode):
> code = models.CharField(max_length=3)
> name = models.CharField(m
There is actually, via a third party app that makes it all dead
simple, it's called django-model-utils and is available here:
https://github.com/carljm/django-model-utils
Credit where it's due, I discovered this wonderful module via PyDanny
and Audrey's Two Scoops book.
Cheers
L.
On 19 April 20
>
> Model inheritance is not the same as object inheritance.
>
> If you are doing non abstract inheritance, then there is no difference
> between a derived model, and a model that has a foreign key to the
> parent class. In a derived model, the foreign key is a OneToOneField,
> with null=False
Hi everybody.
I have a UTF-8 encoded fixture (initial_data.yaml, but I think it's
irrelevant) that contains some data to create auth.Group models. The names
of models are non-ascii characters. Syncdb and loaddata works smoothly, so
it's *not* a question "my non-ascii data is not loading".
The
Hi, I am new to this djnago, can you suggest any development environment to
practice template language. thanks,Srini
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
Now i'm using this: http://ninja-ide.org/. I don't know if this is what you
need, but why don't you try it.
See you
2013/4/18 Srinivasa Rao
> Hi, I am new to this djnago, can you suggest any
> development environment to practice template language. thanks,Srini
>
> --
> You received this messag
Anyone has any experience configuring Django with Bamboo for deployment and
tests?
I'm trying to setup an environment, but there's not much about how to make
this work.
What's is the best approach? cloud or local server?
Is it better to work with simple bash scripts or you recommend some other
too
We had some experience of using Bamboo for deployment of our project.
We didn't have rollback setup so once instead of deploying on staging
server we accidentally deployed on production server, though we cancelled
deployment process was not killed by Bamboo and been running in the
background. Produ
37 matches
Mail list logo