Some recommended to include the tools mentioned here:
http://clemesha.org/blog/2009/jul/05/modern-python-hacker-tools-virtualenv-fabric-pip/
ie, pip, virtualenv and fabric.
I will spec these out tomorrow.
--
You received this message because you are subscribed to the Google Groups
"Django users"
Thank you I will take a look at that.
In either case, I had to move my notes to a new location:
http://www.evernote.com/pub/larryeitel/techlinux#v=l&n=02179b55-4c75-4081-ba8b-1d478ac6c19b&b=8dd23aa5-cf80-4017-b7a4-36cb7b526c89
Thank you :)
--
You received this message because you are subscribed
heya,
I have an address object, which is setup as a generic relation.
class Address(models.Model):
street_address = models.CharField(max_length=50)
... (etc.)
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
conten
If you have any trouble with tinymce look at Markdown in
django.contrib.markup, especially with the "safe" extension. Nice
lightweight solution.
On Mon, Dec 21, 2009 at 6:22 PM, Continuation wrote:
> django-tinymce looks like is what I need.
>
> Thanks for pointing me to that.
>
> On Dec 21, 5:
Hi,
I noticed a while ago that my cache wasn't doing anything – I'm using
memcached with the cache_page decorator, and it simply wasn't caching
views. I've verified that memcached is running, and my settings.py
file is pointed at the right address. Here are my relevant settings:
CACHE_MIDDL
You might take a look at:
http://thebuild.com/blog/2009/10/16/wordpress-to-djangopostgresql-part-1-installing-postgresql/
Feel free to borrow what you'd like.
On Dec 22, 2009, at 6:05 PM, LarryEitel wrote:
> I am creating a step-by-step guide to build out a fresh VPS with
> production
Yes, WebFaction was formerly python-hosting.org - used them when they were
python-hosting and continue to use them.
Good team of guys and they've been around a long time..don't see them going
anywhere anytime soon. Great for shared, haven't tried them for the VPS
Best Regards,
Donna 'SnowWrite' Sn
I am creating a step-by-step guide to build out a fresh VPS with
production stack for Django. It is on a Wiki at: http://is.gd/5xZ3g
I have more details to fill in. I am motivated by a need to build out
a production server for a port of a PHP site (http:biblize.com) to
Django. If anyone would lik
+1 for WebFaction, too. Best hosting service I've ever hosted into.
Diogo
On 22 dez, 16:59, yummy_droid wrote:
> Hi,
>
> Has anyone had good experiences with hosting companies that I can use
> for production django apps, with backups, etc.?
>
> I would also want to add some extensions etc. as
Did you see my response to this question on SO?
http://stackoverflow.com/questions/1950069/suspicious-operation-django/1950178#1950178
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroup
I use Hostgator.com. They posted the following about django:
Django with fastcgi
Django can be installed on a shared environment if you use FastCGI
with it.
Note: You will need the FLUP module for Python 2.4 to run FastCGI, and
you will need the pysqlite2 module to run SQLite3.
In your public_h
Hello,
I've been running into a problem while trying to delete uploaded
images.
The error I get is:
SuspiciousOperation: Attempted access to '/media/artists/12-stones/
154339.jpg' denied.
After reading around it looks like the error is due to the fact that
it's looking for the image in the wrong
There was recently a blog on several of the VPS's, EC2 scored a very
poor last place, while LiNode scored the best. You can find it on the
djangoproject community link.
J
On Dec 22, 10:59 am, yummy_droid wrote:
> Hi,
>
> Has anyone had good experiences with hosting companies that I can use
> fo
2009/12/22 Zeynel :
> Thank you. Can you give me more detailed instructions about how to do
> this? I couldn't parse the referenced section of the documentation.
> How do I create the method "to generate anchor?" Where does the
> "method name" go in the admin.py?
>
> Thanks again.
>
> On Dec 14, 6:
Can you point to that thread please? I've searched but can't find it.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-user
Use virtualenv. All the cool kids are doing it.
You will love it -- it does what you want and more, and I use it on my
Mac with no worries.
Shawn
Sent from my iPhone
On Dec 22, 2009, at 6:42 PM, Alex Fink wrote:
> Hi all,
>
> I'm developing for several different Django projects, one of whic
Hi all,
I'm developing for several different Django projects, one of which has
yet to move from Django 1.0 to 1.1. I'd like to move some of the
projects to 1.1, but keep one of the projects on 1.0. Maybe this is easy
to do, but I didn't know the right search terms to figure out what I'm
trying
Answered in reply to your mod_python mailing list post.
http://www.modpython.org/pipermail/mod_python/2009-December/026415.html
Graham
On Dec 22, 9:45 pm, bharath wrote:
> Hi,
>
> Django is taking time loading libraries . I am using python open
> source libraries like montylingua , simpl
On Tue, Dec 22, 2009 at 12:59 PM, yummy_droid wrote:
> Has anyone had good experiences with hosting companies that I can use
> for production django apps, with backups, etc.?
http://djangofriendly.com/hosts/
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--
On Tue, Dec 22, 2009 at 1:34 PM, Peter Baumgartner wrote:
> I'm trying to use the suggestion here[1] for adding models during test
> suite runs. While it works great in sqlite, I'm not having any luck
> getting it to run in Postgres because it doesn't seem to build all the
> necessary database rel
Webfaction, for my small site, is spectacular. Their CP is awesome (I
think it's their own, not another piece of software from someone
else), and they are totally Python/Django oriented (they used to be
called python-hosting I think).
--
You received this message because you are subscribed t
> >>> c = Client()
> >>> c.get('/customers/details/', {'name': 'fred', 'age': 7},
>
> ... HTTP_X_REQUESTED_WITH='XMLHttpRequest')
Thanks!
Now how do I test an action that must use SSL? (I want a 304 bounce
message if the user tries to use plain text.)
I couldn't find a HTTPS or similar hea
I should've Googled before speaking. According to
http://stackoverflow.com/questions/1499898/django-create-fixtures-without-specifying-a-primary-key
by using "pk: null" in fixtures, the primary key will be automatically
assigned when saving the object. Great! I'll still do some
benchmarking for fun
Ahh, I had seen that earlier but disregarded it because it pertained
to CSV files. I see and am reminded now that I can import my project
or app into a python script. My models won't be changing which would
seem to make a good case for fixtures, but at least this way I don't
need to worry about pri
Thank you. Can you give me more detailed instructions about how to do
this? I couldn't parse the referenced section of the documentation.
How do I create the method "to generate anchor?" Where does the
"method name" go in the admin.py?
Thanks again.
On Dec 14, 6:41 pm, rebus_ wrote:
> Create met
* martedì 22 dicembre 2009, alle 15:40, Łukasz Balcerzak scrive:
> Well, I'm not sure then. Tried debug queries?
> Use django-logging or Djalog and add catching/printing queries middleware,
> you should spot the point where something is going wrong...
Found!
here: http://www.djangobook.com/en/1.0
Well, the data loaded by fixtures will remain, so if you need to add new data
you'll just have to create and load a fixture with the new data.
It's easy to convert data to JSON or whatever, especially if your input isn't
going to change.
However, it seems like maybe you want something else alto
I've been using Webfaction for awhile now and it works great.
On Dec 22, 3:04 pm, brad wrote:
> > Has anyone had good experiences with hosting companies that I can use
> > for production django apps, with backups, etc.?
>
> If you're comfortable administering a linux box, I'd highly suggest
> Lin
I'm trying to use the suggestion here[1] for adding models during test
suite runs. While it works great in sqlite, I'm not having any luck
getting it to run in Postgres because it doesn't seem to build all the
necessary database relations. (ProgrammingError: relation
"fakeapp_fakeitem" does not exi
On Tue, Dec 22, 2009 at 3:14 PM, Victor Loureiro Lima
wrote:
> You can purge the cache whenever you need and update it accordingly.
another strategy is to use the most volatile data as part of the cache
key. that would ensure that new data would ask for inexistent cache
entries. the old ones wo
You can purge the cache whenever you need and update it accordingly.
You would then have a granular cache system ( or low-level cache ). You
would have to update the cache
whenever the object it self is updated...
Pretty common actually..
Victor Lima
2009/12/22 Continuation
> I looked at the d
On Tue, Dec 22, 2009 at 3:24 PM, Bill Freeman wrote:
> If you are calling this from, for example, crontab note that each line
> in crontab is executed in its own subshell, so you have the choice of
> setting PYTHONPATH, or (my personal favorite because it works with so
> many kinds of scripts) you
Hi Shawn,
I had already looked at fixtures and the reason I disregarded it is
because the documentation says:
"Every time you run loaddata the data will be read from the fixture
and re-loaded into the database. Note that this means that if you
change one of the rows created by a fixture and then r
> Has anyone had good experiences with hosting companies that I can use
> for production django apps, with backups, etc.?
If you're comfortable administering a linux box, I'd highly suggest
Linode (http://www.linode.com/). Their service has been great for me.
--
You received this message becaus
Amazon EC2 and S3 +1
On Dec 22, 11:08 am, Victor Loureiro Lima
wrote:
> Amazon's Cloud Computing is wonderful, its currently hosting our django
> website.
> Media Temple is also a good option.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
I looked at the doc and it seems that django's caching system is
based on time - you have to define how long a cached page or view will
live.
For my case (and for a lot of people I'd imagine) that wouldn't work.
For example in generating an inox list list or "how many new messages
you have" count
On Dec 22, 2009, at 10:40 AM, Wayne wrote:
> Thanks for the prompt reply. Yes, unique=True was the problem. Now I
> passed the "run syncdb" and new tables were created. However, I still
> could not "contact LDAP". Could somebody help me with this?
That would be me.
>
> Thanks!
>
> My settin
you could use a migration tool like this:
http://south.aeracode.org/
and do some data migration...
--
Hinnack
2009/12/22 Kevin L
> Hi, could anyone offer some tips as to the best way to keep populating
> my Django database after it's finalized (schema-/model-wise)? The app
> is most read-only
I'm trying to add a get_absolute_url method to a Tweet model from
django-syncr and do not understand why the method is not recognized.
class Tweet(models.Model):
pub_time= models.DateTimeField()
twitter_id = models.PositiveIntegerField()
text= models.TextField()
user
I was on Dreamhost for a while but once I needed to install 3rd party
modules I ran into problems. I've since switched to Slicehost VPS -
http://www.slicehost.com/ and would definitely recommend them. If I
was going with shared hosting I would probably use Webfaction -
http://www.webfaction.com/
O
Fixtures sound like the way to go.
You should get what you need from here:
http://docs.djangoproject.com/en/dev/howto/initial-data/
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googleg
Amazon's Cloud Computing is wonderful, its currently hosting our django
website.
Media Temple is also a good option.
att,
victor lima
2009/12/22 yummy_droid
> Hi,
>
> Has anyone had good experiences with hosting companies that I can use
> for production django apps, with backups, etc.?
>
> I wo
Hello,
here is my model:
Class Photo( models.Model ):
photo = models.ImageField( upload_to="mydir/" )
This class is going to be used to save Images in a gallery that are
uploaded thru a zip file, so first I verify if the zip file is valid, then I
extract all of the files to a gallery speci
> instead of apache lets use NGINX .. great :)
>
or cherokee
saludos ..
Leonel
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
Hi,
Has anyone had good experiences with hosting companies that I can use
for production django apps, with backups, etc.?
I would also want to add some extensions etc. as well (e.g.
matplotlib, reportlab, etc.).
Anyone use godaddy?
Thanks.
--
You received this message because you are subscrib
Hi, could anyone offer some tips as to the best way to keep populating
my Django database after it's finalized (schema-/model-wise)? The app
is most read-only and periodically, I finish up a new data set that
needs to be included. How do I add this additional data set into the
database without wrec
instead of apache lets use NGINX .. great :)
On Tue, Dec 22, 2009 at 5:08 PM, Victor Loureiro Lima <
victorloureirol...@gmail.com> wrote:
> We use django for a project in my company, and by using memcached and a few
> db_index on the correct fields of my models, I was able to go from 3 request
>
In Catalyst it was " { on_connect_do => [ ' select myfunc(1); ' ] }" ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-user
My first guess is that you create a custom template tag that rebinds
the language
while rendering its content, then restores it when it returns.
On Tue, Dec 22, 2009 at 3:29 AM, Baurzhan Ismagulov wrote:
> Hello Itay,
>
> On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote:
>> Maybe
Thanks for the prompt reply. Yes, unique=True was the problem. Now I
passed the "run syncdb" and new tables were created. However, I still
could not "contact LDAP". Could somebody help me with this? There
could be many reasons so I want to start with loggings for Django-LDAP-
Groups.
Thanks!
My s
You can fun a separate process to do this. It should probably be written
as a manage.py extension to make access to the DB via the ORM as
painless as possible. This way the web server thread is not tied up
and can handle requests. The saves to the database (that I presume
you're not showing) and
If you are calling this from, for example, crontab note that each line
in crontab is executed in its own subshell, so you have the choice of
setting PYTHONPATH, or (my personal favorite because it works with so
many kinds of scripts) you can cd to the project directory and execute
the script as ./m
This link explains that and more...
http://www.w3schools.com/tags/att_form_method.asp
Check out the other sections because there are more html basics you will
need to know.
Thanks,
Richard
On Tue, Dec 22, 2009 at 7:42 AM, vishal d <2009vis...@gmail.com> wrote:
> what is the difference b/w requ
We use django for a project in my company, and by using memcached and a few
db_index on the correct fields of my models, I was able to go from 3 request
per second, to approximatelly 300 request per second, mainly doing views
cache. I didnt resort to
per-model caching, or even NGINX and it solved m
Well, I'm not sure then. Tried debug queries?
Use django-logging or Djalog and add catching/printing queries middleware, you
should spot the point where something is going wrong...
On Dec 22, 2009, at 3:35 PM, Francesco Benincasa wrote:
> Just a thing to add:
> as I wrote, only objects passed th
Just a thing to add:
as I wrote, only objects passed through the "extra_context" parameter are not
updated dinamically. The objects passed in the "queryset" are correctly
updated.
Thank you very much.
* martedì 22 dicembre 2009, alle 15:00, Francesco Benincasa scrive:
> * martedì 22 dicembre 2009
You could also try the free online book. http://djangobook.com/
On Dec 22, 3:46 am, Amine wrote:
> Hi,
> I'm new in django and i'm searching a book :
> django 1.0 web site development PDF
>
> can u help me please !
> inhttp://my.softarchive.net/search/?q=django&x=0&y=0 I could not
> download it
Thank you both very much for the comments.
I just setup ngnix in front of apache yesterday and it really helped
getting out of this mess. I didn't know about its advanced features
you mentioned and I will experiment with them soon.
I am caching the context of a page, but when new content arrives,
I think fastcgi daemon may solve the problem.
On Dec 22, 6:45 pm, bharath wrote:
> Hi,
>
> Django is taking time loading libraries . I am using python open
> source libraries like montylingua , simplejson and django is taking
> time loading these libraries .
>
> When django is run using pyth
* martedì 22 dicembre 2009, alle 13:52, Łukasz Balcerzak scrive:
> My bad, it should work without this "workaround" too...
>
> Are you using some sort of caching mechanism? Something not basic? Or maybe
> some middleware?
> The info_args dict you've posted, is it just passed to archive_index func
On Tue, Dec 22, 2009 at 8:50 AM, Javier Guerra wrote:
> On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote:
> > Nginx can also create static files from dynamically served pages, so you
> > could serve pages directly from disk.
>
> this is one of the best ways to do it. you could setup a
> mostly-co
Cool. The Backwards Incompatibility Changes list is handy. Maybe you
can add a link of it to the guide. So people know where to look.
On Dec 22, 11:42 am, Karen Tracey wrote:
> On Mon, Dec 21, 2009 at 10:19 PM, Russell wrote:
> >http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/
>
On Tue, Dec 22, 2009 at 8:44 AM, Michael wrote:
> Nginx can also create static files from dynamically served pages, so you
> could serve pages directly from disk.
this is one of the best ways to do it. you could setup a
mostly-complete static copy of your site, and make nginx call the
dynamic on
Are you using Memcache? It should utilize as much of the cache as it can
without ever causing a memory overflow error. If you aren't, I would highly
recommend using it, it makes life easier because it just works.
Of course with only 512mb of RAM, depending on what you are caching and how
much proc
what is the difference b/w request.GET.get and request.POST.get
methods
plz give me the answer
thanks in advance
vishal D
HYD
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.co
My bad, it should work without this "workaround" too...
Are you using some sort of caching mechanism? Something not basic? Or maybe
some middleware?
The info_args dict you've posted, is it just passed to archive_index function
and returned
or are you doing something more on the way?
On Dec 22,
* martedì 22 dicembre 2009, alle 12:55, Łukasz Balcerzak scrive:
> At the time queryset is sliced Django actually fire the query and return
> objects as normal python list.
> Thats why your extra_context is 'static'.
>
> Just slice latest_news / latest_pages at the template.
Mmm, I've done it bu
On Tuesday 22 Dec 2009 4:51:31 pm Kenneth Gonsalves wrote:
> in a site on my local machine I am getting a psycopg programming error on
> doing manage.py validate. Other sites on the same machine are behaving ok.
> Any clues?
>
solved - someone had put code to execute in models.py - and committ
At the time queryset is sliced Django actually fire the query and return
objects as normal python list.
Thats why your extra_context is 'static'.
Just slice latest_news / latest_pages at the template.
On Dec 22, 2009, at 12:47 PM, Francesco Benincasa wrote:
> * lunedì 21 dicembre 2009, alle 12
* lunedì 21 dicembre 2009, alle 12:21, rebus_ scrive:
>
> extra_context: A dictionary of values to add to the template context.
> By default, this is an empty dictionary. If a value in the dictionary
> is callable, the generic view will call it just before rendering the
> template.
>
>
> http://
Wiadomość napisana w dniu 2009-12-22, o godz. 12:39, przez Jarek Zgoda:
> Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan
> Ismagulov:
>
>>> Maybe what I did can help you: in case you want to put the day name
>>> in
>>> the template you can put a proper date for each day and j
Wiadomość napisana w dniu 2009-12-22, o godz. 09:29, przez Baurzhan
Ismagulov:
>> Maybe what I did can help you: in case you want to put the day name
>> in
>> the template you can put a proper date for each day and just put into
>> the template for each day:
>> {{ day|date: "l" }}
>> day is a
Wiadomość napisana w dniu 2009-12-22, o godz. 10:38, przez adrian_m:
> I'm developing a web application that is intended only for mobile
> use. I want to implement some kind of 'themes' : have a list of
> templates/stylesheets and make it possible that each user chooses one
> of them for visu
hi,
in a site on my local machine I am getting a psycopg programming error on
doing manage.py validate. Other sites on the same machine are behaving ok. Any
clues?
The error message is here:
[law...@xlquest certificate]$ python manage.py validate
Traceback (most recent call last):
hi,
a site of mine serves about 3,000 pages daily to its users, and about
10,000 to crawlers. users mostly surf the active pages, that are being
updated recently, but crawlers go deeper into hundreds of thousands of
pages, which have not been modified, and probably won't be for
months.
so i thoug
> I'm new in django and i'm searching a book :
> django 1.0 web site development PDF
>
> can u help me please !
> in http://my.softarchive.net/search/?q=django&x=0&y=0 I could not
> download it.
>
> Is there another way ?
Absolutely:
http://www.packtpub.com/django-1-0-website-development-2nd-e
On Tue, Dec 22, 2009 at 5:46 PM, Amine wrote:
> Hi,
> I'm new in django and i'm searching a book :
> django 1.0 web site development PDF
>
> can u help me please !
> in http://my.softarchive.net/search/?q=django&x=0&y=0 I could not
> download it.
>
> Is there another way ?
Sure. You go to one
hi, look at docs django
2009/12/22 Amine :
> Hi,
> I'm new in django and i'm searching a book :
> django 1.0 web site development PDF
>
> can u help me please !
> in http://my.softarchive.net/search/?q=django&x=0&y=0 I could not
> download it.
>
> Is there another way ?
>
> thanks for help.
>
>
ah, donno about same page...
On Tue, Dec 22, 2009 at 10:29 AM, Baurzhan Ismagulov wrote:
> Hello Itay,
>
> On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote:
>> Maybe what I did can help you: in case you want to put the day name in
>> the template you can put a proper date for each
Hi,
I'm new in django and i'm searching a book :
django 1.0 web site development PDF
can u help me please !
in http://my.softarchive.net/search/?q=django&x=0&y=0I could not
download it.
Is there another way ?
thanks for help.
--
You received this message because you are subscribed to the G
Hello all,
I'm developing a web application that is intended only for mobile
use. I want to implement some kind of 'themes' : have a list of
templates/stylesheets and make it possible that each user chooses one
of them for visualisation. The number of users is small and all of
them will use a
Hello Chris,
On Mon, Dec 21, 2009 at 04:49:56PM -0800, Chris wrote:
> I have a client that needs to constantly send data to Django-based
> backend. The client code follows the pattern:
>
> ...
> s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
> s.connect( ( '10.20.30.40', 8080 ) )
> whil
On Dec 22, 2:49 am, Chris wrote:
> Hello,
>
> I have a client that needs to constantly send data to Django-based
> backend. The client code follows the pattern:
>
> ...
> s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
> s.connect( ( '10.20.30.40', 8080 ) )
> while True :
> data = s.r
Hello Itay,
On Tue, Dec 22, 2009 at 10:01:12AM +0200, Itay Donenhirsch wrote:
> Maybe what I did can help you: in case you want to put the day name in
> the template you can put a proper date for each day and just put into
> the template for each day:
> {{ day|date: "l" }}
> day is a datetime.date
Hi,
Django is taking time loading libraries . I am using python open
source libraries like montylingua , simplejson and django is taking
time loading these libraries .
When django is run using python manage.py runserver
first request takes time but rest of the requests doesn't take time
( qu
I'm at a loss as to understand why, but I've worked out what I need to
add to pythonpath.
PYTHONPATH=/home/user
i.e. The pythonpath needs to include NOT the project's root, but the
directory one level ABOVE that for custom commands to work properly...
Thanks for the help guys.
~Justin
--
You
Hi,
Maybe what I did can help you: in case you want to put the day name in
the template you can put a proper date for each day and just put into
the template for each day:
{{ day|date: "l" }}
day is a datetime.date object.
that should give the proper day name according to the locale you set
in set
87 matches
Mail list logo