Re: Missing 'SITE_ID' breaks first Django app

2012-07-08 Thread Thomas Orozco
What is kills the whole app supposed to mean? Just pulling this out of thin air, but do you have a record in your database (sites) that corresponds to your SITE_ID setting (when you add it) Le 6 juil. 2012 13:43, "Melvyn Sopacua" a écrit : > On 6-7-2012 7:38, DF wrote: > > > Hi. I just delayed

Re: Cacheing and JSON

2012-07-08 Thread Thomas Orozco
I think you're going to need to provide more context here. Are you telling us that reading from your database takes minutes? Do your remote clients periodically poll your api? What's the overall flow and what's the issue you have? I hardly believe that caching is useful here, unless you're te

Re: how to use HTTPS with django

2012-07-08 Thread Thomas Orozco
27;ve used a few of those on snippets :) They are great. > > And for many people, there is usually more than one Django site, or > multiple applications deploy (custom backend, etc) which run as HTTP > services too. So enabling SSL at server level is a lot easier to maintain. > > >

Re: Hello!

2012-07-14 Thread Thomas Lockhart
On 7/14/12 12:04 PM, Shubz wrote: Hi! I'm new to Python and Django. I feel like I'm jumping in deep end, but I have previous PHP and Java knowledge so what the hey. I was wondering if anybody could be kind enough to point me in the right direction to a broken down tut on installation for Mac?

Re: Query Distance from User

2012-07-15 Thread Thomas Lockhart
On 7/15/12 4:41 PM, JJ Zolper wrote: Yeah I'm trying to get GeoDjango set up as we speak. GeoDjango sounds awesome. I have postgresql and Im trying to install postgis but im getting this: FIx your errors in the configure step before bothering to try building. In this case you need libxml2 insta

Re: Directory indexes are not allowed here. for Grappilli

2012-07-16 Thread Thomas Orozco
What is your actual problem here? Do you not understand the message? Do you have a reason for which you'd want this directory indexed? Le 16 juil. 2012 13:24, "chhots" a écrit : > Page not found (404) Request Method: GET Request URL: > http://localhost:8080/static/grappelli/ > > Directory inde

Re: Template Loader Error: (It's been really frustrating till now..!)

2012-07-18 Thread Thomas Orozco
one can have a myapp directory in their template dir to override your templates, as templates from this folder will have higher priority than those from the App dir. Le 19 juil. 2012 07:18, "Anoop Thomas Mathew" a écrit : > > On 19 July 2012 04:46, Mark Anderko wrote: > >>

Re: INSTALLED Grappelli App and getting some error

2012-07-18 Thread Thomas Orozco
Never use grappeli so take this advice for what it's worth, but did you check the version compatibility of your grappeli install and your django install? Le 18 juil. 2012 20:12, "chhots" a écrit : > TemplateSyntaxError at /admin/ > > 'url' is not a valid tag library: Template library url not foun

Re: Tutorial question

2012-07-19 Thread Thomas Orozco
A model is just a class, so the methods just "go there", yes. You could check out apps in django.contrib for styling best practices (the django doc itself also covers this I think*,* but I can't remember where) Le 17 juil. 2012 19:49, "jeffsarge" a écrit : > Hi, > I'm learning Django and Python

Re: many "Broken INTERNAL link" with end string "/undefined/"

2012-07-19 Thread Thomas Orozco
Did you visit the page where the broken link exists with the same browser as your user and searched for : + JS warnings + JS errors + Requests on the broken link + The actual broken url somewhere in the DOM tree Chrome has an integrated full featured debugger, you could use it. The proble

Re: SuspiciousOperation exception on ImageField upload

2012-07-19 Thread Thomas Orozco
Here you're trying to upload to a directory, whose path starts with a / : /images. On *nix, / means system root. Obviously your django process does not have permission to write there unless you set that up so. You should remove the leading slash in your upload to path. Your files will then uploa

Re: CachedStaticFilesStorage unavailable in debug mode

2012-07-19 Thread Thomas Orozco
CachedStaticFiledStorage will work, only it will not append the hashes as it usually does and behave like a standard file storage. The use case for this storage is to set very long expires dates on the static files and rely and their url changing (due to the hash changing ) whenever you change the

Re: Query with 3 models

2012-07-19 Thread Thomas Orozco
Shouldn't that be a prefetch related and not select related? Le 19 juil. 2012 16:52, "Tomas Neme" a écrit : > > > {Empresa1, Sucursal1, Platillo1, Horario1}, > > {Empresa1, Sucursal1, Platillo2, Horario1}, > > {Empresa2, Sucursal1, Platillo1, Horario1}... > > I'm guessing the Sucursal1 in the fir

Re: Newbie -- issue with psycoppg2

2012-07-21 Thread Thomas Lockhart
On 12-07-21 3:57 AM, Quincy Kwende wrote: create a database using PostgreSQL Try googling "create a database using PostgreSQL" The first hit is the chapter you want in the Postgres docs. hth - Tom -- You received this message because you are subscribed to the Google Groups "Dj

Re: Checking if a dynamicallygenerated dropdown has a selected item

2012-07-23 Thread Thomas Orozco
Are you using django forms? Should be pretty straightforward once you have the input nicely formatted to just count the number of fields that have been filled in. Le 23 juil. 2012 19:01, "Babatunde Akinyanmi" a écrit : > Maybe I don't really understand the question but I think if you want > to c

Re: how to make template for startapp and startproyect?

2012-07-24 Thread Thomas Lockhart
On 7/24/12 11:24 AM, kase wrote: hello.. i wish make my templates for django-admin.py startproyect and startapp but i dont know how, and i dont find documentation to explain how to make it (i find documentation from how to use, but not how to make) There may be a better way suggested by ot

Re: No timezone support for TimeField?

2012-07-31 Thread Thomas Lockhart
On 7/31/12 1:34 PM, Tejinder Singh wrote: Django 1.4 does not store aware times for TimeField, it only does for DateTimeField. Its really annoying, as python datetime.time object does support TZINFO just like datetime.datetime objects. I wonder if it is a bug? Btw i have tested it on postgres 9

Re: PostGIS 2.0.0 problems

2012-08-03 Thread Thomas Lockhart
On 8/3/12 3:39 PM, Oleg Korsak wrote: looks like GeoDjango is dead, it is not solved for almost half of the year Really? What is the use case requiring a version 2.0.0? Seems that the previous 1.x version works as advertised. And typically folks don't jump on a x.0.0 of anything, expecting to

Re: Do I understand the support schedule correctly?

2012-08-06 Thread Thomas Lockhart
I'd be interested in hearing other opinions about this. Out there in > the "real world" (™), how long does Long Term Support have to be in > order to be practically useful? Two years to be able to stick with a single version? Just fine imho. A few points you have probably heard before: Django

Re: Choosing a Django-based CMS

2012-08-08 Thread Thomas Guettler
relation-ship to the page model. I use this pattern often if I want to extend an app. It is developer friendly and you won't notice the fact that there is one more SQL query. Regards, Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --

Middleware manipulating template in response

2012-08-09 Thread Thomas Weholt
"sch-", "sec-", "send", "seri", "sgh-", "shar", "sie-", "siem", "smal", "smar", "sony", "sph-", "symb"

Re: Middleware manipulating template in response

2012-08-09 Thread Thomas Weholt
your input. Thomas On Thu, Aug 9, 2012 at 3:09 PM, Daniel Roseman wrote: >> On Thursday, 9 August 2012 13:18:36 UTC+1, MrMuffin wrote: >>> >>> I need to change what template to use in a response based on type of >>> user-agent in request. The middleware below wor

Pure python-alternative to Gunicorn/NGINX/Serving static content

2012-08-09 Thread Thomas Weholt
I'm using gunicorn and nginx on ubuntu when deploying my django projects, but now I need to run a project on several platforms, including windows. Is there a similar pure python configuration ( with the expected reduced performance for serving static content )? -- Mvh/Best regards, Thomas W

Re: Middleware manipulating template in response

2012-08-10 Thread Thomas Rega
is there any other way to achieve the same result ( using a special template for mobile devices ) without hacking this into each view? MiddleWare using https://docs.djangoproject.com/en/dev/topics/http/middleware/?from=olddocs/#process-template-response for instance? Anyway, thanks for your in

Re: What is the easy way to install DJango?

2012-08-15 Thread Thomas Guettler
why I would use Linux for development, too. You can use a virtual machine. HTH, Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
If you're using a ForeignKey for this field, you'll get this behavior by default in the Django admin. Le 17 août 2012 08:45, "Madhu" a écrit : > Hello, > > I want to add the button along with field in admin form. > > ex. Field name "URL" with the "Choose Page" button. > If admin clicks on "Choose

Re: django makemessages doesn't recognize trans in templates

2012-08-17 Thread Thomas Orozco
You gave us the project layout, but where are the templates? My guess is that Django is basically not picking them templates *up*, but I might be off. There are arguments to the makemessages command that can help you indicate the directory you want messages created for. You can also use higher ve

Re: Django Admin doesn't show all fields from model when registered.

2012-08-17 Thread Thomas Orozco
This is not really django specific, several objects bearing the same name in the same namespace will always lead to trouble ; ) (And this is not even python specific) Glad you could fix it and thanks for posting your solution in case someone else has the same issue though. : ) Le 16 août 2012 21:0

Re: Auto login with external cookie from different system

2012-08-17 Thread Thomas Orozco
Huge props for having the python docs on localhost :-D Le 16 août 2012 20:08, "Melvyn Sopacua" a écrit : > On 16-8-2012 6:02, Kurtis Mullins wrote: > > > Not all of us host the Python docs, locally, haha. > > Lies! But yea, forgot to check that so thanks :) > > -- > Melvyn Sopacua > > -- > You re

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
e URL as the > character field and "Choose Page" button which having the function which > retrieves the database query list. > > > On Friday, August 17, 2012 12:51:35 PM UTC+5:30, Thomas Orozco wrote: >> >> If you're using a ForeignKey for this field, you'

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
It's raw_id_fields! (see the docs for more detail : ) ) On your modeladmin, set that to a list including the name (as string) of your field, and you should have what you want. Let me know if I misunderstood. Le 17 août 2012 09:47, "Thomas Orozco" a écrit : > Oh, yeah, sorry a

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
I might be off, but I believe that they want to get a list of objects from the database, a ForeignKey seems more appropriate here, or am I missing something? Le 17 août 2012 09:58, "Amyth Arora" a écrit : > Change the ModelField to type "CharField" and you should have a input > box in the admin.

Re: Using sessions in Django

2012-08-17 Thread Thomas Orozco
Session key is the session 's primary key. Not the session itself. What you want to assign to your field is a session, not its key. So use request.session. However. Please very careful when using FK' s to sessions, sessions are meant to be short lived, and could / should be deleted once they exp

Re: Using sessions in Django

2012-08-17 Thread Thomas Orozco
I'm sorry, I have some trouble understanding exactly what you need, could you please try and provide a bit more context ? :-) Le 17 août 2012 10:27, "Sandeep kaur" a écrit : > On Fri, Aug 17, 2012 at 1:42 PM, Thomas Orozco > wrote: > > Session key is the session 

Re: Using sessions in Django

2012-08-17 Thread Thomas Orozco
My mistake then, sorry about that! Le 17 août 2012 10:34, "Tom Evans" a écrit : > On Fri, Aug 17, 2012 at 9:12 AM, Thomas Orozco > wrote: > > Session key is the session 's primary key. Not the session itself. > > > > What you want to assign to your

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
(again) did you try using raw_id_fields? Le 17 août 2012 11:26, "Madhu" a écrit : > Can you please tell me how to add the Buttom on admin form in django? > I want to add the button beside the field. > > -- > You received this message because you are subscribed to the Google Groups > "Django users

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
Then there must be something I don't understand in what you need, could you describe a bit more? Le 17 août 2012 12:02, "Madhu" a écrit : > > I try the row_id_fields, but its not helpful for me. > I want the button will be display in admin form. > Using row_id_fields its just the linking of forei

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
So you would want to have a link to the url that was entered? Le 17 août 2012 12:15, "Madhu" a écrit : > Ok. I will explain it in brief. > > I want the button like the image field having the Browse button with the > Image field in admin side i want the same button but the functionality may > be d

Re: Adding Button in admin form

2012-08-17 Thread Thomas Orozco
I'm sorry, I really have a hard time understanding what you need, but you might want to try overriding the form template to add your button? If so, try the change_form_template parameter. Le 17 août 2012 12:42, "Madhu" a écrit : > No. URL linking is not the problem. I have the problem to add the

Re: Updating a model instance with extra checks.

2012-08-20 Thread Thomas Orozco
A few suggestions : Circumvent the problem with smarter design: don't store the money on the object, make the user's money the sum of all their transactions (credit - debit). You get lesser performance, but you also get history! Maybe you could try (not sure about that): MyModel.objects.filter(m

Re: Updating a model instance with extra checks.

2012-08-20 Thread Thomas Orozco
1:26, "Melvyn Sopacua" a écrit : > On 20-8-2012 19:37, Thomas Orozco wrote: > > > Circumvent the problem with smarter design: don't store the money on the > > object, make the user's money the sum of all their transactions (credit - > > debit). > &

Re: [ImageField -Upload a valid image]

2012-08-20 Thread Thomas Orozco
I'd you believe PIL is not picking up your libjpeg when it should be, you could give Pillow a shot ; its basically a PIL installer that makes installation easier. Le 20 août 2012 22:30, "Kurtis Mullins" a écrit : > Whenever you compile PIL, make sure that libjpeg is available to it. You > should

Re: Updating a model instance with extra checks.

2012-08-20 Thread Thomas Orozco
pp_testmodel"."balance" >= 4 AND "testapp_testmodel"."id" = 1 ); args=(4, 4, 1) 0 *So this seems to generate a single SQL statement.* * * *I'm not totally familiar with database administration though, so as** Melvyn rightly pointed out, it's always

Re: Updating a model instance with extra checks.

2012-08-21 Thread Thomas Orozco
nt be triggered. > It seems strange to me to be using the objects manager instead of the > model instance directly, no? > > Seb > > Le mardi 21 août 2012 02:11:42 UTC+2, Thomas Orozco a écrit : >> >> As a followup to the suggestion of MyModel.objects.filter(**money__gte = &

Re: How I do to centralize logins OpenID in django?

2012-08-22 Thread Thomas Orozco
+1 - If you are running both apps using the same database server, this would probably be the simpler solution! Le 22 août 2012 04:26, "Kurtis Mullins" a écrit : > I've never tried this approach; but maybe you could use the multi-database > feature of Django to share a database for the Authenticat

Re: Any good Open Source Django-Based CRM's ?

2012-09-01 Thread Thomas Orozco
Django crm is pretty good and open source! On Sep 1, 2012 4:53 PM, "pajju" wrote: > HI > > I'm looking for Django Powered Open Sourced CRM's which is ready for > Production use. > I did not find much help google'ing for the same. :) > > And In other Technologies, Open Sourced based CRM's which on

Re: Any good Open Source Django-Based CRM's ?

2012-09-01 Thread Thomas Orozco
Dismiss what I said, I misread (and miswrote) CRM for CMS -_- 2012/9/1 Thomas Orozco > Django crm is pretty good and open source! > On Sep 1, 2012 4:53 PM, "pajju" wrote: > >> HI >> >> I'm looking for Django Powered Open Sourced CRM's which is

Re: Right approach to create simple CRM

2012-09-02 Thread Thomas Lockhart
... 3. Get opensource CRM and configure for your needs. 4'. ... and add plugins if needed. hth - Tom -- 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 u

Re: Django admin runs out of memory with ForeignKeys to large tables

2012-09-05 Thread Thomas Lockhart
On 9/5/12 6:00 AM, Mattias Linnap wrote: I've found two solutions: setting "editable=False" in the model's field definition (which removes the field completely from admin), or adding it to readonly_fields list in the ModelAdmin (which keeps the data visible). Perhaps it will be possible to subcl

Re: newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Thomas Lockhart
On 9/10/12 11:30 AM, Bob Aalsma wrote: I'm in Chapter 5 of the tutorial, configuring the database. I think I've done everything correct to set the DATABASE_ENGINE = 'sqlite3'. Then I check the settings and see an error: ImproperlyConfigured: settings.DATABASES is improperly configured. Please

Re: testing a django package

2012-09-11 Thread Thomas Orozco
ed without any of the former by just testing the methods in them . You can always use mocking library . Tests are basically just python code with a lot of asserts, you can always add viewed in them . You can use fixtures for test data if you see fit Hope this helps! Thomas On Sep 10, 20

Re: Django newbie with issues

2012-09-11 Thread Thomas Lockhart
On 9/11/12 6:29 AM, Morrti wrote: Hi, We did try things with v1.5, but that also failed. Looking further it seems that my branch on git was wrong. Moving to the correct one for 1.1 has seemed to have corrected things, well we got past that issue. I'm going to continue with the tutorial now an

Re: Iphone applications via django

2012-09-11 Thread Thomas Weholt
You could use JQuery Mobile on the frontend. It's still a web app like any other, but app-like in looks and functionality, at least to a certain degree. Thomas On Tue, Sep 11, 2012 at 4:16 PM, Kelly Nicholes wrote: > If you go HTML/JS, a phonegap alternative for cross-device compa

Re: Best free web hosting portal

2012-09-11 Thread Thomas Orozco
You can also try https://www.pythonanywhere.com/ Their free offering, however, doesn't seem as interesting as Anton's appfog 2012/9/10 Anton Popovine > Hello, > > http://www.appfog.com/ came out of closed beta recently. They support > python and django. > > You get quite alot for free. (2Gb ram

Re: Marketplace for Django apps

2012-09-11 Thread Thomas Orozco
You could always use https://www.gittip.com/ to that end, Basically, it allows you to tip developers that are on github For instance, you could tip django devs at: https://www.gittip.com/on/github/django/ You can see that: https://www.gittip.com/aaugustin/ or https://www.gittip.com/alex/, among o

Re: Django and LDAP

2012-09-11 Thread Thomas Lockhart
On 9/11/12 2:49 PM, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't ma

Re: not picking up new template

2012-09-12 Thread Thomas Lockhart
On 9/12/12 8:27 AM, Larry Martell wrote: On my Mac, I changed a template, and the change was picked up, no problem. I checked my change into git, went to another machine, a CentOS box, pulled the change down, but django is not picking it up. I've tried everything I can think of - bounced the serv

Re: not picking up new template

2012-09-12 Thread Thomas Orozco
plate actually isn't different from the older one. You should be able to do that using pdb and the Django code base :-) There might be a quicker way though, I'll have a look at it. Thomas On Sep 12, 2012 5:59 PM, "Larry Martell" wrote: > On Wed, Sep 12, 2012 at 11:56 AM,

Re: tastypie - some feedback / comments

2012-09-12 Thread Thomas Orozco
After giving it a try for a small personal project / curiosity, I couldn't agree more that it's great for a REST API with querysets, but whenever something doesn't exactly tie into this structure, things get complicated. However, I would say that this can also be a good thing. This forces you to

Re: not picking up new template

2012-09-12 Thread Thomas Orozco
template_path). This way you should be able to troubleshoot your issue. You could always try wich each loader using: from django.conf import settings for loader_name in settings.TEMPLATE_LOADERS: l = loader.find_template_loader(loader_name) l.load_template_source(somewhere/'your_temp

Re: testing a django package

2012-09-12 Thread Thomas Orozco
to ask on a JS-focused list regarding unittesting JS for this purpose. Thomas 2012/9/12 Jonas Geiregat : > > I can now show you what I really would like to write tests for. > > https://github.com/jonasgeiregat/django-ajax-forms > > The code I would like to test is in ajax_forms/v

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2012-09-12 Thread Thomas Orozco
This seems to be a *very* promising project! : ) Le mercredi 12 septembre 2012 22:27:26 UTC+2, psagers a écrit : > > I recently released a suite of packages to support two-factor > authentication in Django by way of one-time passwords. > > The core package is django-otp

Re: testing a django package

2012-09-12 Thread Thomas Orozco
> > self.client.get(reverse("ajax_form_view")) > > I don't see how the client will find my urls.py file and without the > broader, actual django application as context ? > > > > > > Now, this is probably not going to be practical to test your jQ

Re: Basic auth struggle

2012-09-13 Thread Thomas Orozco
Could you us the line where you import login? On Sep 13, 2012 2:06 PM, "Timster" wrote: > What does the rest of your views.py file look like? > > Do you happen to have a view named login()? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread Thomas Lockhart
On 9/13/12 10:37 AM, Bob Aalsma wrote: Hmm, I'd seen this solution in http://keeyai.com/2012/02/17/django-deployment-create-superuser-fails-with-locale-error/ but was reluctant to use this as " I have no idea if this causes any negative side effects." A running system is not usually considered

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Thomas Lockhart
On 9/14/12 3:47 AM, Bob Aalsma wrote: SOLVED by Tom Evans: insert unset LC_CTYPE ; export LANG="nl_NL.UTF-8" into .bash_profile That is a solution, but depends on who is running and whether it is a login shell. I strongly recommend adding the lines I mentioned earlier to the top of your manag

Re: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-14 Thread Thomas Lockhart
On 9/14/12 10:07 AM, Bob Aalsma wrote: Well, I have tried your suggestion in all places I could think of and none of those helped: the createsuperuser kept returning the same error message. I posted this as a reply some 24 hours ago. Yes, with no details of what "all the places I could think of"

Re: Easy question to the Auth System

2012-09-16 Thread Thomas Orozco
Hi, Use ManyToMany if one event can relate to *several* Users Use ForeignKey if one event relates to a *single* User Cheers, Thomas 2012/9/16 WoHinDu : > Hey, > > sorry for my bad englisch. Englisch is not my nativ language, but i hope you > can understand it and sorry for the stu

Re: Changing table's engine through migration scripts

2012-09-16 Thread Thomas Orozco
x27;t make sense for SQLite or Postgres, Moreover, the table engine doesn't make any difference from the app's point of view, so I think it's better to leave that to your database console. Cheers, Thomas 2012/9/16 Gurpreet Bhatia > corrected the wrong subject :) > >

Re: Beginer: Need Help in setting up goflow, could you please elaborate initial Gflow setup

2012-09-20 Thread Thomas Guettler
Hello the last update on goFlow is some years ago (sept 2008). This projects looks dead. If you are new to django, I guess you will get a lot of errors Thomas Güttler Am 19.09.2012 18:23, schrieb Enator24: Need Help in setting up goflow, could you please elaborate initial Gflow setup

Re: My "Contributors" page Conundrum

2012-09-20 Thread Thomas Lockhart
On 9/20/12 5:28 PM, JJ Zolper wrote: Anyone have any ideas? Yes, Melvyn did. hth - Tom Thanks! JJ Zolper On Tuesday, August 28, 2012 2:24:03 AM UTC-4, Melvyn Sopacua wrote: On 28-8-2012 6:58, JJ Zolper wrote: > My problem is that I want each contributor

Re: Django testing strategy

2012-10-04 Thread Thomas Orozco
You can use `fixtures` for this purpose! You can have several of them to have exactly the data you need for a test. Have a look there: https://docs.djangoproject.com/en/dev/topics/testing/#django.test.TestCase.fixtures Cheers, Thomas 2012/10/4 Daniele Procida > I have started writing

Image/Photo app

2012-10-12 Thread Thomas Guettler
and notes between the GUI and the web app. I need these features: - tags - notes - star rating - access control: A user must only see these pictures which match to his groups/permissions. - search by tag and date. Regards, Thomas Güttler -- Thomas Guettler, http://www.thomas

Re: Send data back to a table from template or send back to a view

2012-10-24 Thread Thomas Rega
Am 24.10.12 11:26, schrieb Coulson Thabo Kgathi: i used django template language to access value from my models in the database which are coordinates the using javascript i wrote a function that give a list of coordinates that are within a polygon in a map. now i want to send that list back to a

Re: Incorrect Python Version Being Used

2012-11-06 Thread Thomas Lockhart
On 11/6/12 7:09 AM, Bestrafung wrote: I have been running into this problem for a long while trying to setup my first Django project and I keep coming back to this problem. I am relatively new when it come to Linux, I'm learning but still have a long way to go. I am using CentOS 5.8 cPanel whic

Re: can django be used in destop application?

2011-08-24 Thread Thomas Weholt
wxpython, pyqt etc and I still make stuff way faster using django. It doesn't fit every project though. And another thing; there have been discussion about how to distribute django projects and a django project distributed as a single binary, a setup.exe on windows for instance? Sounds nice.

Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-24 Thread Thomas Weholt
need to do this as well in my alternative view. I want to use the date-hierarchy, filtering, pagination, admin actions etc you get for free in the admin in my alternative view. Is this possible? How do I reuse most of the existing admin code to achieve this? -- Mvh/Best regards, Thomas Weholt

Re: Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-24 Thread Thomas Orozco
which bits you want to change. Le 24 août 2011 23:38, "Thomas Weholt" a écrit : > I want to create a view looking and working just like the admin > change_list, but using my own template ( based on the admin > change_list template ) so that all the filtering you get from > spe

Re: AssertEquals __unicode__

2011-08-25 Thread Thomas Orozco
Well, call unicode(MyObject) and assert equals u'myRepr' Le 25 août 2011 12:34, "Torsten" a écrit : > Hi > > How do I do that right ? > > I have a class like: > > class Invoice > ... > def __unicode__(self): > return unicode(str(self.created_at.year)+'/'+str(self.id)) > > and an test here: > > > d

Re: Creating an alternative change_list view for a specific app/model, not extending or overriding

2011-08-25 Thread Thomas Weholt
ch it. Any clues on how to subclass the admin views? Thomas On Thu, Aug 25, 2011 at 2:31 AM, Thomas Orozco wrote: > What about calling your admin view with a GET "alternate=1" parameter ? > > An if statement in a template override would then allow you to render > properly depe

Re: Django Development environment

2011-08-25 Thread Thomas Guettler
ersion: http://code.djangoproject.com/svn/django/branches/releases/1.3.X Source: svn Stages: DEV, QUAL, PROD synced with unison. Webserver: Apache, mod_wsgi Nightly unittests. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You receive

Re: Integrity Error

2011-08-26 Thread Thomas Orozco
Your invoice items have no invoice attribute, as the error says. By the way, although I'm not sure of what you're trying to achieve, let me point out that there is not really a need for a sum field in your invoice as you can just sum all the invoice items' amount (and respect the DRY principle - y

Re: Integrity Error

2011-08-26 Thread Thomas Orozco
That would be blank = True Le 26 août 2011 11:58, "Kejun He" a écrit : > Sometime, set null = true would allow a field to be empty > > On Fri, Aug 26, 2011 at 5:41 PM, Thomas Orozco wrote: > >> Your invoice items have no invoice attribute, as the error says. >&g

Re: Integrity Error

2011-08-26 Thread Thomas Orozco
ip, you will *always* need to save the foreign key item before the item that has a foreign key to it, else it has no id and you get an integrity error). Thomas 2011/8/26 Torsten > Thanks Thomas > > your are right concerning the sum there is no need for that. > But you say: &g

Re: Integrity Error

2011-08-26 Thread Thomas Orozco
7;t point out first. None of your fields have "blank = True", so you're going to have to either give them default values or give them actual values in your tests. Hope this helps. Thomas 2011/8/26 Torsten > Hi > > I have the following model: > > class Invoice(m

Re: Integrity Error

2011-08-26 Thread Thomas Orozco
Glad I could help! Le 26 août 2011 12:53, "Torsten" a écrit : > Thanks Thomas you helped me a lot these are my first step in python > and django. > And I really starting to like it > > Torsten > > On 26 Aug., 12:23, Thomas Orozco wrote: >> While we'r

Re: Installation

2011-08-26 Thread Thomas Orozco
You needn't have Django in your path but the parent directory so you can import it. Le 26 août 2011 14:07, "prem" a écrit : > Hi, > > Im trying to install Django but Im not succcessfull. > > The python has been installed properly. > > This is my python shell, > > Python 3.2.1 (default, Jul 10 2011

Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
ps? I want to create a similar piece of code as an alternative change_list in the admin. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Where's the code picking apart the info about selected filters in the admin change_list stored in the current session?

2011-08-28 Thread Thomas Weholt
Is this just spam/phising or what? Thomas On Sun, Aug 28, 2011 at 6:44 PM, wrote: > I am out of office right now and will get back to you when I return. If you > don't hear from me, my assistant should contact you shortly. Check out this > massage chair that I just bought to

Values for ManyToMany-field set in code not visible in admin

2011-08-29 Thread Thomas Weholt
the change_form for the model are not selected. Selected the values for the ManyToMany-field in the admin manually is saved ok and display ok. What's the difference between setting fields like this in code and doing it in the admin? -- Mvh/Best regards, Thomas Weholt http://www.wehol

Re: Norwegian Sorting

2011-09-09 Thread Thomas Weholt
As a norwegian myself this is very interesting. I have no clue how to help you, but please post information about any solution you might encounter on your quest. Regards, Thomas On Fri, Sep 9, 2011 at 11:18 PM, Tim Sawyer wrote: > Hi Folks, > > I have a django site which is against a

Re: Using gedit for django development

2011-09-13 Thread Thomas Weholt
Very nice. Did some work on making a plug-in for the Editra editor with the same goal but your project looks much better, Thanks! Thomas On Tue, Sep 13, 2011 at 2:12 AM, Micah Carrick wrote: > I've written a blog post on using gedit, the default text editor in GNOME, > as a Dja

Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
atetag to generate the url etc. Sorry if it's still of topic. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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.co

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
Good point Cliff! I just assumed serving static content would benefit from caching, but perhaps my effort is more well spent focusing on other aspects of my app right now. Thanks :-) Thomas On Thu, Sep 15, 2011 at 3:42 PM, J. Cliff Dyer wrote: > What is your goal in doing this?  You

Re: Caching static images using memcache/nginx

2011-09-15 Thread Thomas Weholt
Aha! That's briliant, but doesn't nginx set those headers for me when returning a static resource like a image? Thomas On Thu, Sep 15, 2011 at 4:52 PM, Ilian Iliev wrote: > How about to set correct headers and make the images cached on user side > instead > of wasting memchac

Re: Create socket server in django

2011-09-20 Thread Thomas Orozco
You just have to run your server as a daemon and use Django's setup_environment so you can use the ORM to interact with your Django DB. I can try and find the lines you need to do that if you can't find them. Le 20 sept. 2011 09:08, "Micke" a écrit : -- You received this message because you are

Re: changes to .py file is not reflected until server is restarted.

2011-09-22 Thread Thomas Orozco
Sightly off topic, but your .py files seem to be exposed by your webserver - you shouldn't do this or anyone could download them! Le 22 sept. 2011 08:02, "kenneth gonsalves" a écrit : > On Wed, 2011-09-21 at 19:37 +0100, Cal Leeming [Simplicity Media Ltd] > wrote: >> Oh jeez - modpython, I've nfi

Re: Parellel request from the same user in very short time

2011-09-24 Thread Thomas Orozco
" using, for example, asynchronous work. It's up to you! Thomas 2011/9/24 Martin Tiršel > Hello, > > I am using Apache with mod_wsgi and following setting: > > WSGIDaemonProcess dev.xyz.com processes=1 threads=5 user=xyz group=xyz > display-name=dev.xyz.com > >

queryset.delete() ON DELETE ...

2011-09-27 Thread Thomas Guettler
ignKey the on_delete argument. But what can you do, if you want this only for one delete call, not always? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Djan

Community Wiki/CMS app

2011-09-27 Thread Thomas Guettler
andle most of this. I have seen the comparison grids on http://djangopackages.com/ but I am unsure, and don't have much time for the decision. Any feedback welcome, Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You rec

<    2   3   4   5   6   7   8   9   10   11   >