Re: Django & uWSGI best practices

2012-05-11 Thread Roberto De Ioris
ex to manage and secure. Finally give a look at --idle,--cheap and --cheaper options, they could help you in maintaining resources low. -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread Roberto De Ioris
If you are uging a virtualenv, add virtualenv = to the uWSGI config file > > On Sunday, April 29, 2012 11:31:43 AM UTC-7, Roberto De Ioris wrote: >> >> >> > I have this file that was created for me by one of the users in >> django's >> > irc chan

Re: [help] Server Config: django + uwsgi + nginx

2012-04-29 Thread Roberto De Ioris
ocol to the uwsgi one (simply replace http = with socket = ) and put it behind a simple nginx config (like the one you will find following the uWSGI quickstart). Then move to the 'upstart' part, adding the script to the /etc/init directory. Finally start playing with caching (it can be

Re: Django nginx uWSGI

2012-04-22 Thread Roberto De Ioris
mind. By the way, it looks like you have built uWSGI for a different python version. >From its source directory do make clean python2.7 uwsgiconfig.py --build to be sure the correct python version is used (the first command is used for cleaning files from the previous build) When uWSGi starts

Re: Problems with Virtualenv and Django 1.4 -- deployment on uwsgi.

2012-04-03 Thread Roberto De Ioris
rtualenv: /home/sosek/.virtualenvs/dev.sosek.net > pythonpath: /home/sosek/nginx/dev.sosek.net/apps > you should update your module directive to module: engine.wsgi Check latest official Django docs on uWSGI https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/uwsgi/ -- Robert

Re: New way to run your Django projects

2012-03-19 Thread Roberto De Ioris
rver you have tested your project ? In addition to this, Django is not the kind of framework/platform you can - easily - adapt to non-blocking/async paradigm :( -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it -- You received this message because you are subscribed to the Google Gro

RemoteUserBackend not creating user

2012-02-20 Thread Roberto Bouza
Hello, I've been hitting my head pretty hard trying to figure out what the problem is hope someone here can help. I've set up the remote backends and middleware as per the docs and blatantly I'm coding the META remote_user and nothing happens. like this: MIDDLEWARE_CLASSES = ( 'django.middle

Re: Simple task dispatching (How heavy is celery + RabbitMQ)

2011-11-28 Thread Roberto De Ioris
ngo-zeromq (as already suggested by someone) is very good. Another solution is using python thread queues: http://projects.unbit.it/uwsgi/wiki/Example#threadqueue -- Roberto De Ioris http://unbit.it JID: robe...@jabber.unbit.it -- You received this message because you are subscribed to the G

Re: Creating a WSGI Request for another uWSGI Django App

2011-09-23 Thread Roberto De Ioris
status = 200) > > -- > 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 unsubscribe from this group, send email to > django-users+unsubscr...@goo

Re: Using os.fork() in a Django view

2011-08-19 Thread Roberto De Ioris
ollow the old-raw-way of dinamically generating apache virtualhosts file for each customer and let mod_wsgi+daemon_mode do the hard work. Well, returning to the os.fork() problem, if you really need it, be sure that it will be the user slice/area/instance calling it (so you can limit wit

Re: https / nginx / uwsgi / django problems with authentification

2011-07-20 Thread Roberto De Ioris
is coming from an > nginx https server ( all redirects should be https:host:port ) > or from an nginx http server. > > > Does anyone have a similiar setup or has some ideas? > You can force the protocol using the HTTPS variable (standard, but not enabled in nginx) or you ca

Re: Scaling to 30k requests (malcolm box blog)

2011-07-11 Thread Roberto De Ioris
if they want uWSGI to poorly lose, or on all the other things if they want uWSGI to easily win :P) So, stop wasting time measuring already discovered things :) -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-10 Thread Roberto De Ioris
that will make CLI usage very > easy. forgot to say that sym:// works in module aliasing too: --pymodule-alias foobar=sym://pippo_py -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Limiting the address space of any other binary..?

2011-07-08 Thread Roberto De Ioris
> Hi Roberto, > > Wonder if you might be able to give me some advice.. > > Is there is a way to limit the address space of any other binary, > without relying on /etc/security/limits.conf?? > > For example, is it possible to do something like this: > > ./magic-her

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-07 Thread Roberto De Ioris
binary generating another binary with python code embedded. This is pretty easy to accomplish. I will try it in the next few days. -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Re: Some thoughts on a package/stack compile system for easy distribution of webapps..

2011-07-06 Thread Roberto De Ioris
y going to make something like this for companies own > internal use, but wanted to see if anyone else had an interest in > seeing this go open source. > > Cal Hi Cal, you may be interested in Ian Bicking's Silverlining project/idea: http://cloudsilverlining.org/ -- Roberto

Re: django 1.3 timing out on empty POST request

2011-06-27 Thread Roberto De Ioris
Il giorno 27/giu/2011, alle ore 22.07, mehdi ait oufkir ha scritto: > Roberto, I'm actually using uWSGI 0.9.6.5. > > Can you tell me what is the issue with the previous version. I can > stop by on uwsgi IRC if you want to take the conversation off google's > group

Re: django 1.3 timing out on empty POST request

2011-06-26 Thread Roberto De Ioris
> Roberto, > > it is uWSGI, but can you explain a bit more what the post-buffering > would help me do? > Would it help me debug with pdb? > -mehdi Before starting a pretty long and boring explanation, can you double check if you are using the 0.9.8.1 version of uWSGI ? It

Re: django 1.3 timing out on empty POST request

2011-06-25 Thread Roberto De Ioris
ill probably only need to enable post-buffering in uWSGI (--post-buffering 4096 will be enough). Remember to use 0.9.8.1 (latest stable) as it contains a much better wsgi.input implementation. > -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Go

Re: VERY cheap django hosting?

2011-06-08 Thread roberto
http://www.asmallorange.com/ On Jun 8, 10:17 am, Chris Lawlor wrote: > Always Data (http://www.alwaysdata.com) has a free plan, but it is > quite limited (you only get 10 MB disk space). > > On Jun 8, 2:39 am, Maksymus007 wrote: > > > > > > > > > megiteam.pl is 24PLN which is about 8usd a month:

Re: SystemError from django.conf.settings

2011-05-29 Thread Roberto De Ioris
u will see tons of comparison reporting the opposite, others showing mod_wsgi is better and so on... Please try to understand that WSGI bridges/gateways/servers are pratically irrelevant in your app performance. Gunicorn works for you ? Perfect ! you have found your WSGI server ;) -- Roberto De Ior

Re: how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-23 Thread roberto
ucture look like ? Maybe it is something related with this. I am not an expert but these are a couple of things that called my attention. Roberto On May 23, 3:01 am, enqing wrote: > No, I don't think so, first I edit my Model like this: > > in model.py: > Class UeSetting(model.M

Re: Looking for recommendations to replace vBulletin with a django based forum

2011-05-13 Thread roberto
I've been collaborating a little bit with askbot and I think it is worthy to try. The people who lead the project is very smart and gentle. Roberto On May 9, 11:27 pm, Eric Chamberlain wrote: > Hello, > > We are thinking about replacing our low-usage vBulletin forum with a django

Re: Django Admin template

2011-05-03 Thread roberto
django-google-toolbar ? or django-debug-toolbar ? I am asking because I wasn't able to find anything about the first one. Tks. Roberto On May 3, 4:10 pm, Juan Pablo Romero Méndez wrote: > For this, django-google-toolbar is invaluable. It tells you exactly which > templates w

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-15 Thread roberto
You can also have a look at askbot. It seems to have more functionalities. Good luck ! www.askbot.org On Apr 14, 6:43 pm, AJ wrote: > Why has this become a case for me? I just wanted to know about a particular > solution, that whether it exists or not. I did try Google and other forums. > > I ne

Re: can not download file from my site ( django + uwsgi )

2011-04-13 Thread Roberto De Ioris
ize) to see where is the problem -- Roberto De Ioris http://unbit.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-users@googlegroups.com. To unsubscribe from this group, send email to

Re: can not download file from my site ( django + uwsgi )

2011-04-11 Thread Roberto De Ioris
. > does anyone know how to fix this? > You are referring to static files served by nginx or dynamic pages served by uWSGI ? or both ? -- Roberto De Ioris http://unbit.it -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Read write config from a file. How?

2011-04-04 Thread Roberto De Ioris
gi related options socket = :3031 module = django.core.handlers.wsgi:WSGIHandler() master = 1 ; and here your custom options my_funny_option = pluto foo = bar The in your code you can access all the options with the uwsgi.opt dictionary: import uwsgi uwsgi.opt['socket'] uwsgi.opt['

Re: Django IDE : how to start the devserver in an editor?

2011-03-30 Thread roberto
MrMuffin, You've also have the editra group where the author use to answering quickly all of the questions posted there: https://groups.google.com/group/editra?hl=en I like your ideas and features to add into the plugin for django. Good luck ! Roberto On Mar 30, 4:21 pm, MrMuffin wrote

Re: testing django applications

2010-11-18 Thread roberto
What if you add a __init__.py inside AAA directory and in your abc/ tests.py you include "from projectXXX.AAA.xyz import class_to_test" plus all the test code you want for testing it ? Good luck! Roberto On Nov 18, 12:05 pm, girish shabadimath wrote: > I will

Re: Django job needed

2010-10-27 Thread roberto
http://code.djangoproject.com/wiki/DjangoJobs http://djangozen.com/jobs/ http://www.python.org/community/jobs/ Good luck ! On Oct 26, 10:41 pm, Venkatraman S wrote: > On Wed, Oct 27, 2010 at 1:04 AM, Swordfish wrote: > > Hi everybody! I'm looking for a job deals with Django. > > Interesting in

Re: mtv pattern(diagram)

2010-10-14 Thread Roberto Benitez
--->template | | V response Simple, clear, I think nothing is missing. Maybe urls.py should be between views and response too. Credits to refreegrata ! Thanks Roberto On Wed, Oct 13, 2010 at 8:57 AM, Kenneth Gonsalves wrote: > On Wed, 2010-10-13 at 04:51 -0700, refr

Re: Rich email with attachments

2010-10-14 Thread Roberto Benitez
I don't know tinyMCE in detail. What I know is to send emails with media and style you need to include all css inside the email template and, instead of making relative reference to media urls, you have to use the whole absolute url. My 2 cents. Roberto On Thu, Oct 14, 2010 at 7:35 AM, Jon

Re: mtv pattern(diagram)

2010-10-13 Thread Roberto Benitez
--> response |^ |-| Wouldn't it ? Why not ? Thanks Roberto 2010/10/13 Jonathan Barratt > On 13 ?.?. 2010, at 18:51, refreegrata wrote: > > > I have some questions. > > First off, I don't think you should be making

Re: cannot open Django official website

2010-10-10 Thread Roberto Benitez
Form me is working right now. I don't know if it wasn't available before. Roberto On Sun, Oct 10, 2010 at 12:53 PM, retzzz wrote: > Anybody know what's wrong with django official website > www.djangoproject.com? > I can't open it by several days. Is it down or

Re: Project-wide tests

2010-10-08 Thread Roberto Benitez
One thing you can do is to call your "out of django" app test process from one of your django app test modules. Roberto On Fri, Oct 8, 2010 at 11:00 PM, diogobaeder wrote: > Hi there, > > I know that the testing facilities from Django read "test" modules > insid

Re: IDE for Python/django

2010-09-28 Thread roberto
Don't forget Editra. It is cross-platform (windows, linux, mac os). It was code using python. It is not heavy. I like it. I am currently using Coda (only for mac os) It is beautiful but only for that platform. My 2 cents -- You received this message because you are subscribed to the Google Grou

Re: Free Django Hosting

2010-08-04 Thread roberto
Free django hosting: http://www.alwaysdata.com/ Two details: - It is in French. - Not sure if it is allowed for commercial sites so please, be careful. Good luck ! On Aug 4, 3:38 am, kostia wrote: > I'm looking for private person from some government institution/ > university or with his own h

Re: Django IDE

2010-07-18 Thread roberto
Cross platform, I like editra but I think it still needs some more maturity. It is coded with python. Ulipad is also developed using python. Pycharm is nice too but you have to pay for it as soon as testing period is over. Netbeans is great but big memory consumer and coded with java. It also has b

Re: Django IDE

2010-07-18 Thread roberto
pycharm is not open-source On Jul 18, 6:32 am, Masklinn wrote: > PyCharm > > On 2010-07-18, at 11:06 , tayfur yilmaz wrote: > > > wing ide. > > > 2010/7/18 河边的汉子 > > >> pydev eric ulipad…… > > >> 2010/7/18 Juan Hernandez > > >> google: "django ide" > > >>> :) > > >>> On Sun, Jul 18, 2010 at 12

Re: Looking for Django Developer(s) in Long Island for part time and full time

2010-07-02 Thread roberto
http://djangogigs.com http://djangozen.com http://python.org/community/jobs/ On Jul 1, 10:03 am, normlevy wrote: > Hello Django User group... > > I am looking on the site for how to post a job opening to your > community...and I apologize in advance if I am not doing the right. > > We are looking

Re: How to set the sucess message after inserting values to db in django admin site

2010-04-22 Thread Paulo Roberto Macedo Chaves
If you are using a generic view for create/update object without a logged user, the messages will not be displayed. On Thu, Apr 22, 2010 at 3:09 AM, Radhikavk wrote: > > How to set the sucess message after inserting values to db in django admin > site > like message department added sucessfully

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-08 Thread roberto
I think there is a plugin for firefox called "SQLite manager" that is a big help to do simple stuff with sqlite db. Let me know if you need some directions to use it. Good luck -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Django editor for Debian

2009-12-17 Thread roberto
Ulipad: it is light, it has nice features, it is developed with pythonwhat else ? -- 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

Simple database replication app for Django

2009-09-24 Thread Roberto Rosario
I needed a simple way to append new records from many Oracle dbs to one Mysql db, and came up with this solution. As part of the mantra "Release Early, Release Often" I'm putting it into a separate app, making it more generic and releasing it on google code. Code is at: http://code.google.com/

Re: is Django a good choice for a LAN app?

2009-08-13 Thread roberto
snfctech, As far as I know, Django doesn't have an option to set more than one database. If I am mistaken, please, let me know. I am not sure if there is any project to add this capability in the future tough. Maybe you should investigate a bit more in the site (djangoproject.com). Regards. On Au

Bulk file upload via admin

2009-06-01 Thread Roberto Cea
Is there a way to allow bulk upload of files (e.g.: images) from the admin? My use case is an ImageGallery model, where the admins would like to be able to select an arbitrary amount of files to upload at one time, and not have to browse-select-accept each file individually. Using trunk. Thanks,

Guarding against injection while using AJAX.

2009-05-29 Thread Roberto Cea
I am accepting user input using the Jeditable library for jQuery, which sends the data as POST parameters "id" and "value". I am reading these parameters into a django.forms.Form to sanitize it, like so: class EditInPlaceForm(forms.Form): id = forms.CharField() value = forms.CharField()

Re: Set all strings to Unicode

2009-05-28 Thread Roberto Cea
Finally a reason to upgrade, then. Thanks, Rodrigo On May 28, 11:54 pm, Alex Gaynor wrote: > On Thu, May 28, 2009 at 10:53 PM, Roberto Cea wrote: > > > I see. I take it this only works in 2.6? > > > Thanks, > > > Rodrigo > > > On May 28, 11:48 pm, Ka

Re: Set all strings to Unicode

2009-05-28 Thread Roberto Cea
I see. I take it this only works in 2.6? Thanks, Rodrigo On May 28, 11:48 pm, Karen Tracey wrote: > On Thu, May 28, 2009 at 11:29 PM, Roberto Cea wrote: > > > I'm just coming off of a Unicode bug hunting expedition, adding a ton > > of "u"s before quotation

Set all strings to Unicode

2009-05-28 Thread Roberto Cea
I'm just coming off of a Unicode bug hunting expedition, adding a ton of "u"s before quotation marks. Is there a way to tell Django (or Python): "Assume all my strings are unicode, ok?" --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Djangonic?

2009-05-24 Thread Roberto Cea
If an idiomatic Python program is "pythonic", what do you call idiomatic use of Django, "djangonic"? --~--~-~--~~~---~--~~ 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

Re: Rendering models using their own templates

2009-05-19 Thread Roberto Cea
= loader.render_to_string(html_tmp.name, {'obj': self}) return html where self.html_template_name is the path + name of the template, and it's passed the calling model instance as 'obj'. Thanks! Rodrigo On May 19, 11:50 pm, Eric Abrahamsen wrote: > On May 20, 2009, at 10:53 AM, Ro

Generic subclass accessor for model inheritance?

2009-05-19 Thread Roberto Cea
I have a BaseModel and n models that subclass it. Each instance of the BaseClass has a .name_of_subclass attribute that returns the subclass instance associated with it. Is there a generic way of accessing this instance without knowing beforehand the name of the subclass, something like base_class

Re: Best Django host

2009-05-19 Thread Roberto Cea
Webfaction has small-amount-of-clicks install for Django, and the support staff is both knowledgeable (about Django and other topics) and helpful. It's very Django friendly. On May 19, 10:41 pm, LeonTheCleaner wrote: > Thanks, I saw that link. But why webfaction is better. It has the same > manu

Rendering models using their own templates

2009-05-19 Thread Roberto Cea
I have a large amount of optional components (with a model for each one) that will be freely inserted by my users, and it would be impractical to render each one in a single large template. I want to give each component a ".render()" method, so I can just call that from the template. However, I do

Re: How do I execute a python module within the context of a Django project?

2009-05-09 Thread Roberto Cea
Thanks, super fast, too. R. On May 9, 10:21 pm, James Bennett wrote: > On Sat, May 9, 2009 at 9:52 PM, Roberto Cea wrote: > > Here's a fairly basic question: how do I execute an arbitrary python > > module within the context of a given Django project, with access to

How do I execute a python module within the context of a Django project?

2009-05-09 Thread Roberto Cea
Here's a fairly basic question: how do I execute an arbitrary python module within the context of a given Django project, with access to its models, etc.? Currently, I load it from a "manage.py shell" session, but I'm sure there's a more straightforward way to do it, no? --~--~-~--~~--

Re: Client requests Django capacities

2009-05-06 Thread Roberto Cea
ou got it gives them what they want and > covers your ass. > > Something like > this:http://scottbarnham.com/blog/2008/04/28/django-performance-testing-a-... > > On May 6, 9:52 am, Roberto Cea wrote: > > > I am in the process of signing a contract to develop a website for a &

Client requests Django capacities

2009-05-06 Thread Roberto Cea
I am in the process of signing a contract to develop a website for a fairly large IT company using Django. They requested that the contract nclude: 1) number of concurrent visitors that the site will support 2) maximum response times for typical requests I've explained that both items will depen

Re: Your IDE of choice

2009-01-06 Thread roberto
I tried them all (almost ... I think... at least the free ones). - Pyscripter is really nice but it is true, it is only for windows. (If it is developed with python it should be platform-independent, shouldn' be ?) (no support for sql queries I think) - Eclipse + PyDev (no good support for sql que

newbie question: select_related from parent to child

2007-03-06 Thread roberto
dear all, i'm starting to use django and i have what may seem to a lot of you the stupidest question ever, though i have not been able to solve this,. i have to classes: class warriors(models.Model): username = models.CharField(maxlength=50) class warriors_gaming(models.Model): warrior

Re: Adding a list filter that points to a function?

2006-02-17 Thread Roberto Aguilar
Thanks for the reply! Here is the pertinent part of the code: http://django.pastebin.com/560781 I think it has more that has_address is a function and not a variable in the model. -berto. On 2/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/17/06, Roberto Aguilar <[

Adding a list filter that points to a function?

2006-02-17 Thread Roberto Aguilar
has address as listed in tutorial #2 for "was_published_today": http://www.djangoproject.com/documentation/tutorial2/ but this does not work for list filters. Any suggestions? Thanks! -Roberto. --~--~-~--~~~---~--~~ You received this message because

Re: Edit a Foreign Key object from within a view

2006-02-16 Thread Roberto Aguilar
return HttpResponseRedirect("../") Index: templates/widget/foreign.html ======= --- templates/widget/foreign.html (revision 2296) +++ templates/widget/foreign.html (working copy) @@ -5,4 +5,5 @@ {% else %} {% if bou

Re: Edit a Foreign Key object from within a view

2006-02-16 Thread Roberto Aguilar
/path/to/related_object_editing.patch Please let me know if anyone finds any bugs with it. Is there any chance this will get incorporated into the main code base? I think it's a very useful feature, hopefully others will too. -berto. On 2/15/06, Roberto Aguilar <[EMAIL PROTECTED]> wrote: > Hello, &

Edit a FK object from w/in view

2006-02-15 Thread Roberto Aguilar
Hello, I have a Model that has a FK to an Address Model. In the admin, I get a pulldown to select the address or a plus sign to add a new one. Is there some way to get an edit button next to the plus sign so that i can get the same window as the add window, but it's pre-filled with the address

Re: Class Methods in Model?

2006-02-14 Thread Roberto Aguilar
Awesome, works great. Thanks for the help, guys! -berto. On 2/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/14/06, Eric Walstad <[EMAIL PROTECTED]> wrote: > > Hey Berto, > > > > > > And magic-removal, as far

Class Methods in Model?

2006-02-14 Thread Roberto Aguilar
Hello, I have a model called Invitation that I would like to have a method called make_rsvp_code. In the model I define it as such: class Invitation(meta.Model): [...] def make_rsvp_code(self, invitation): [...] make_rsvp_code = classmethod(make_rsvp_code) The reason I pas

Is context variable 'user' automatic in templates?

2006-02-11 Thread Roberto Aguilar
Hello, I've noticed that in certain instances, in a flatpage, for example, the user context variable is available in my templates. However, most of the time I have to explicity provide it like when using render_to_response. Is this a bug, feature, or am I just not doing something right? Thanks

Re: is_member_of method for user objects

2006-02-11 Thread Roberto Aguilar
In my situation, what I wanted to do was limit the display of a bunch of menu items depending on the group of the user. I accomplished this with a for loop and a test for a group: {% for group in user.get_list %} {% ifequal group 'desired_group' %} [...] It's a two-step process rather than one,

is_member_of method for user objects

2006-02-10 Thread Roberto Aguilar
Hello, I wasn't able to find an easy way to check if a user is a member of a group, so I added the method; here is a patch for: django/django/models/auth.py Index: auth.py === --- auth.py (revision 2296) +++ auth.py (workin

memcached + multiple virtual hosts

2006-02-09 Thread Roberto Aguilar
mcached somehow account for many virtual hosts? I've tried googling for multiple memcached instances, but have not had any luck. Thanks! -Roberto. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: How to identify svn revision of a released version?

2006-02-07 Thread Roberto Aguilar
You can download one of the tags: http://code.djangoproject.com/svn/django/tags/releases/ -berto. On 2/7/06, Hwan <[EMAIL PROTECTED]> wrote: > > hi, > which svn revision matches the released django-0.91? > where can i find this kind of information? > thanks > >

Re: How to use non English characters in templates

2006-02-07 Thread Roberto Aguilar
Just a shot in the dark, but is your database set for UTF-8? It may be that the text isn't being saved as international in the database, so when you retrieve it, it's just plain ascii. Here is a list of character sets supported: http://www.postgresql.org/docs/8.1/interactive/multibyte.html and

Re: Question About Multi Column Keys

2006-01-31 Thread Roberto Aguilar
Aany "model" can be included in the admin interface as long as you include a META subclass inside of it with the admin attribute defined: class Tagged(meta.Model): user = meta.ForeignKey(User) site = meta.ForeignKey(Site) tag = meta.ForeignKey(Tag) class META: admin=meta.Adm

Re: Extending User

2006-01-30 Thread Roberto Aguilar
I've done this with the latter approach. I made a person model that had more person-specific information and made the user field a foreign key and added the edit_inline option to have the information right there in the user interface: user = meta.ForeignKey(auth.User, edit_inline=meta.STACKED, n

Re: What is save to use in __repr__

2006-01-30 Thread Roberto Aguilar
I ran into the same thing in a model with a ForeignKey to an auth.User object. In my __repr__ function I had: self.get_user() which would crash Django. In this instance, I wanted the username specifically, so I resorted to using: self.get_user().username I didn't try, but I think this would

Re: image field update impossible.

2006-01-29 Thread Roberto Aguilar
Is it possible to attach a validator to that field and remove the file if it exists? Check out unlink on this page: http://docs.python.org/lib/os-file-dir.html -berto. On 1/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > It doesn't solve the problem, i can't still override the image wi

Re: Using Foreign key attributes in a template

2006-01-29 Thread Roberto Aguilar
On 1/29/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/29/06, Roberto Aguilar <[EMAIL PROTECTED]> wrote: > > is there a way to say something like: > > > > {% set blurb entry.get_blurb %} > > > > and then just use: > > &g

Using Foreign key attributes in a template

2006-01-29 Thread Roberto Aguilar
I have a Journal model that has a OneToOneField linking to a Blurb model (blurbs have title, text, author, etc.). In a template i do the following to get to the blurb attributes: {{ entry.get_blurb.get_author.username }} {{ entry.get_blurb.title }} {{ entry.get_blurb.text }} etc. is there a way

Re: glitches in admin interface

2006-01-29 Thread Roberto Aguilar
On 1/21/06, Luke Skibinski Holt <[EMAIL PROTECTED]> wrote: > > It seems my problem with the repeating fields is a known bug with > one-to-one relationships (http://code.djangoproject.com/ticket/1245) I just updated that ticket. I have a hunch that it's a matter of adding a join clause that joins

BigIntegerField type?

2006-01-27 Thread Roberto Aguilar
imply manually alter the database? i.e.: ALTER TABLE foo_bars ALER some_number TYPE bigint; I tried this and it works fine, but does anyone see something going wrong with this? Thanks! -Roberto.

Re: one-to-one design problem

2006-01-08 Thread Roberto Aguilar
simply "close" my post and discuss in here instead? -Roberto. On 1/8/06, oggie rob <[EMAIL PROTECTED]> wrote: > > > The problem is I can't figure out > how to detect that extra data without adding some indication in the > Items table as to what other table(

Re: top-level model

2006-01-08 Thread Roberto Aguilar
result would look something like: class Item(meta.Model): type = meta.ChildDescriptionField() class BookItem(meta.Model): item = meta.ForeignKey(Item, parent_edit_inline=True) [...] Does this ramble sound feasible/the right direction to go in? -Roberto. On 1/8/06, Alice <[EMAIL PROT

<    1   2