Re: How to learn Django stepwise Effectively

2016-01-15 Thread ashwoods
If you already know python, I would just start with the tutorial on the website, and then just start hacking on small projects with it. Learn by doing works best for me, but you can also look into two scoops of django if you like reading books. On Thursday, January 14, 2016 at 7:12:31 PM

custom sql in model save.

2014-04-02 Thread ashwoods
I need to override the SQL insert statement for one model, but would like to ensure everything that save() does is conserved (signals, etc..) where would the best place be? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: How can I completely remove Django and reinstall it - I've broken something

2013-04-26 Thread ashwoods
run pip uninstall several times just in case :) then reinstall django. take a look at virtualenv. lets you make isolated python environments. makes life a lot easier: https://jamiecurle.co.uk/blog/installing-pip-virtualenv-and-virtualenvwrapper-on-os-x/ On Friday, April 26, 2013 2:00:28 AM

Re: Test runner fails with Django 1.2.1 and psycopg2 2.4.2

2011-06-23 Thread ashwoods
do you get these errors with: 'OPTIONS': { 'autocommit': True, } ? On Jun 14, 6:06 pm, Andrew Brookins wrote: > Hey, > > Yesterday I started seeing test runner failures with Django 1.2.1 and > psycog2 2.4.2. > > Here's the traceback (where [project_dir] is the path

Re: first time deploying django on apache with mod_python on fedora 8

2011-01-28 Thread ashwoods
is there any reason you are using mod_python instead of, say, wsgi? modpython is deprecated and there are "better" alternatives. id start with that. looking in apache logs to find out why you have the 500 error might help. (a hunch tells me it might be a python path error) ash On 28 Jan., 07:45,

Re: Django's documention is horrible

2011-01-12 Thread ashwoods
Although it might be nice to have api docs online, you have to say that django has excellent high level docs (django docs site) and low lvl docs (code is well py-documented -in the source). Epydocs, and other doc alternatives - automatic or semi automatic doc generators like pydoctor, sphinx (a

Re: Large static files served through django come out ~1kb short

2010-08-02 Thread ashwoods
try looking if there is something like that in the bugtracker, and if not, you can help a lot by filing a bug, if posible with some sample files. thx. cheers, ashley On Aug 2, 7:29 pm, Tom wrote: > I am using django.views.static.serve() from a fresh project. The only >

customozing model method representation in admin

2008-07-03 Thread ashwoods
if i have a method for a model, that returns True or False, is there a way for the admin to show automatically a symbol like it does for booleanfields or something similar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: loaddata problem with boolean null in fixture - anyone seen this?

2007-12-06 Thread ashwoods
did u add that after a syncdb maybe? On 6 Dez., 21:55, Shev <[EMAIL PROTECTED]> wrote: > One of my models has a field like this: > > confirm = BooleanField(blank=True, null=true) > > When I use Django's dumpdata command to export my data to a fixture, > and then try to re-import with loaddata, I

Re: Taconite + jquery + Django

2007-11-16 Thread ashwoods
i am trying to learn jquery + django so a very easy example would be very useful :) thx.. ash On Nov 8, 5:52 pm, Brian Costlow <[EMAIL PROTECTED]> wrote: > Just thought I'd pass this along. I've been lurking about learning as > I work on a couple of Django-based projects, and thought it was

Re: Encoding in models.py (and maybe other files too)

2007-04-20 Thread ashwoods
ops. my wrong. so the only way to keep it "clean" is using i18n. might be an overkill for small apps in one languange though. On Apr 19, 1:46 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2007-04-19 at 10:45 +, ashwoods wrote: > > ah, i code for

Re: Encoding in models.py (and maybe other files too)

2007-04-19 Thread ashwoods
ah, i code for english, german, spanish. :) but as far as i know, the encoding declaration is only needed if you have special chars in _code_ as opposed to strings. your strings can be unicode without having to declare an encoding for the python file. my opinion is that if you can, you should

Re: ImportError: no module named django

2007-04-18 Thread ashwoods
maybe apache or apache mod_python is set not to follow symlinks. copy the django code into site-packages (not merely a symlink) and try if that works. On Apr 18, 11:10 pm, Oliver Charles <[EMAIL PROTECTED]> wrote: > I get... > > [EMAIL PROTECTED] ~]$ sudo -u apache python > Password: > Python

Re: Encoding in models.py (and maybe other files too)

2007-04-18 Thread ashwoods
maybe a little off-topic, but why do you need special characters in code? it makes code maintainance and reusability a bit more difficult, while there are not really a lot of situations where its necesary. just asking :) --~--~-~--~~~---~--~~ You received this

has anybody implemented something like del.icio.us in django?

2007-04-15 Thread ashwoods
there is an app that i would like to make that would build on that funcionality... but try to google that and find something useful :) cheers, ash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Development in LAN. URLs of FlatPages. Best Practices?

2007-03-21 Thread ashwoods
could you post the code on django snippets? :) On Mar 20, 11:35 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > > have you found any solution? > > Yes. I wrote my own FlatPage model with it's own middleware. Now the > URL can be empty and it represents the relative path counting from the >

Re: contrib.auth logins "randomly" complaining about cookies being disabled

2007-03-21 Thread ashwoods
have you tried contacting the project maintainer? this is third party code and unless anybody happens to use it, to answer you they would have to go through his code. on the wiki page it says: >Questions? Problems? >If you've got a question that isn't covered here or in the comments and

Re: Integrating web services with django

2007-03-21 Thread ashwoods
is there any reason you want to process the "webservices" on the server side? unless there is any special reason to do this, it looks like kind of redundant and actually that is one of the main reasons to use webservices (decentralized application model). that means you would want to spit out

choosing ajax framework (for my projects) :)

2007-03-09 Thread ashwoods
with so many choices, you dont really know where to start :( things like i would like to do. 1) update the contents of a div element with the content fading out and in (news on the first page) 2) select form elements that populate depending what the "parent" form element was chosen 3) when i

Re: Template filter to retrieve the MEDIA_URL

2007-03-02 Thread ashwoods
context processor would be better :) its just included in the context, while here you are "parsing" text. On Mar 3, 3:16 am, "Henrik Lied" <[EMAIL PROTECTED]> wrote: > Hi there, Sean! > > Thanks for the different methods -- > > I went for a different approach, though. I simply created a simple

Re: Deployed url mapping

2007-02-18 Thread ashwoods
i think you are a little confused. i'll try to clear things up. first, the url.py does not depend on the apache configuration in the sense you imply. but apache does have to know when to call the django/python handler, and that can be host based, directory based, virtualhost based (if the apache

Re: Django over modpython

2007-02-17 Thread ashwoods
i've been checking out hosts for myself, and the already mentioned www.webfaction.com seems to be very good. i haven't chosen yet, but their team seems to be very friendly and I have had some _weird_ requests myself and they were very helpfull. but most hosting do have fastCGI, and that works.

Re: noobie first project

2007-02-02 Thread ashwoods
first place to look is here: http://www.djangoproject.com/ documentation/ :) and for your special case: http://www.djangoproject.com/documentation/ authentication/ you can use the admin site for users, of course its not a full blown cms, (it's not supposed to either). but you can add

Re: Multilingual content - yet another idea

2007-02-01 Thread ashwoods
myself, i might be missing something. i am a newbie after all. although, i just commited to svn a patch for reading the languanges from the settings.py file :) take care, ashley On Jan 28, 11:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 28 Sty, 17:23, "ash

Re: Multiple views on one page

2007-02-01 Thread ashwoods
i might not be understanding exactly what you mean, but i think what you want is this: http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors On Feb 1, 7:54 pm, "adamr" <[EMAIL PROTECTED]> wrote: > Sorry, django.contrib.admin.urls is the wrong view, I am trying to use >

Re: Multilingual content - yet another idea

2007-01-28 Thread ashwoods
i'll be testing it tonight :) On Jan 26, 2:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I had some time to work on the library today. Man, am I learning > about Django :) > > So far everything seems to be working out nicely. Changes made since > the previous version: > >

Re: using dev version, just ran update, still getting "cannot import name newforms"

2007-01-23 Thread ashwoods
look into django_src and see if there is a newforms folder (or under django_src/django) was django always installed there? or did u ever install django from the distribution package? is the symlink under site-packages (in your python directory) pointing to the right place (django_src or maybe

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
yahoo! this is great :D mk, why don't you just create a project at google code and put what you have in svn there? ashley On Jan 23, 7:55 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > This is exactly what I had in mind :) > > I am installing python, svn, and Django on my personal

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
> fields below class definition. IMHO better approach is to use (revamped ;)) > I18N(Char|Text)Field. > > Ideally implementation can look like this: > > class Category(models.Model): > [...] > name = I18NCharField(blank=True, null=False, maxlength=250) > description =

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
nesh wrote: >>it is possible using object registry to get all translations for the object >>*field*, it is (a little) more complicated to get translated *objects* though, and adding tags to get counts will be trivial. Multiple translation on the same page are possible, for example one can do:

Re: doing calculations

2007-01-23 Thread ashwoods
ah, me too slow :) On Jan 23, 2:40 pm, "ashwoods" <[EMAIL PROTECTED]> wrote: > yes, you would override the save methods. > look at :http://www.djangoproject.com/documentation/model_api/ > (Overriding default model methods) > > applied to your exampl

Re: doing calculations

2007-01-23 Thread ashwoods
yes, you would override the save methods. look at :http://www.djangoproject.com/documentation/model_api/ (Overriding default model methods) applied to your example, it would look something like this... class Model(models.Model): bla bla... def netratefunction(self): bla bla bla

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
ah btw, thx marcin. but now i don't know what i am going to be doing in febraury :) On Jan 23, 10:29 am, "ashwoods" <[EMAIL PROTECTED]> wrote: > as i posted in my post, maybe more than one backend would be nice, to > allow the developer the freedom of optimising the data

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
as i posted in my post, maybe more than one backend would be nice, to allow the developer the freedom of optimising the database to how he wants, or write is own backend, without having to change a lot in the model. languange_code: its faster to look up a number as index as a languange code, and

Re: Multilingual content - yet another idea

2007-01-23 Thread ashwoods
i was proposing something "similar" a couple of days ago: http://groups-beta.google.com/group/django-developers/browse_thread/thread/c01665f5093b4895 On Jan 23, 12:33 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I am developing a website that contains mainly multilingual

Re: translations...

2007-01-22 Thread ashwoods
oh. a group just for that :) thx don. On Jan 22, 9:37 pm, Don Arbow <[EMAIL PROTECTED]> wrote: > On Jan 22, 2007, at 12:22 PM, ashwoods wrote: > > > > > hmm... i guess everybody is tired of translation discussions :)You > > might have better luck in t

Re: Does django create apps folder for you?

2007-01-22 Thread ashwoods
the manage.py startapp actually does very little. just a folder and a "couple" of empty files. if you want to have an apps folder, just create one. if your main project folder is MyProject, just go to MyProject and: mkdir apps (or if you are in windows, just use what you always use) under

Re: syncdb: No module named Utils

2007-01-22 Thread ashwoods
hmm... can you post the whole error output? On Jan 21, 11:05 pm, "johnny" <[EMAIL PROTECTED]> wrote: > what does it mean "No module named Utils" when I run python manage.py > syncdb? > > I have looked into INSTALLED_APPS, there is nothing called "Utils" > Someone mentioned CONTEXT_PROCESSORS, I

Re: translations...

2007-01-22 Thread ashwoods
hmm... i guess everybody is tired of translation discussions :) On Jan 21, 1:12 am, "ashley" <[EMAIL PROTECTED]> wrote: > after searching and reading all the posts related to internalization > and multilanguange, my first question is if there is any active > development to integrate or make

Re: admin calendar and clock in my code

2007-01-22 Thread ashwoods
the new newforms library pretty much covers form creation. did u already take a peak? http://www.djangoproject.com/documentation/newforms/ cheers, ashley On Jan 22, 11:57 am, "Giorgio Salluzzo" <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying to include in my templates django admin calendar

Re: Multiple Forms and/or Models from one template (newforms)

2007-01-22 Thread ashwoods
i would do case 2. you can create a NewForm object with all the fields you want. then in the view where you process the post request, you just create (or edit) the model instances manually. that means you import all your models, you create a new instance of each model and assign the request data

Re: Simple Model Question

2007-01-22 Thread ashwoods
sorry, i have no idea what you are trying to do. is that python? plz explain. On Jan 22, 5:08 pm, "johnny" <[EMAIL PROTECTED]> wrote: > If I have the following: > > model1 > import modelTemp > class exe > (class exe uses a foreignKey from modelTemp) > > model2 > import model1.exe > class exe1 >

Re: A calendar-like view in Django/Python...

2007-01-14 Thread ashwoods
using ical would probably be interesting too... http://www.devoesquared.com/Software/iCal_Module On Jan 14, 3:48 am, "mediumgrade" <[EMAIL PROTECTED]> wrote: I have written an application that keeps track of appointments for my technicians. My partners would like to be able to view the

a simple django CMS anyone?

2007-01-13 Thread ashwoods
django is great for writing CMSs, or in other words, writing web applications for content :). it makes sense to have "application driven" websites instead of "content driven" when writing the code with django is so easy... the tradeoff is that most of us are probably rewriting a lot of the stuff

creating forms from models using newforms

2007-01-13 Thread ashwoods
on irc there was more than one who were really interested in creating forms from model defintions are were really sad that newforms does not do this. but! the newforms documentation isn't nearly finished, so if you are really impatient, just dive into the code yourself :) or if you read the

google maps - python

2007-01-01 Thread ashwoods
I was searching for a google maps wrapper for the google API but didn't find any. I started writing it myself but my python is very poor so I would appreciate any tips, as I guess this is something more than myself might like :) this makes adding google maps with django as easy as: --

creating generic "forms"

2006-10-19 Thread ashwoods
the admin code generates the forms dynamically based on the model. is this funcionality "standardized" somehow to use in apps? thanks, ashley --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

sharing session information with plone

2006-10-02 Thread ashwoods
does anybody have experience of sharing session information from a plone site. I want our intranet users that are authenticaded in plone to be able to access django without having to relog. thx, ashley --~--~-~--~~~---~--~~ You received this message because you