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 UTC+1
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 t
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 U
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 to my virtualenv):
>
> Tr
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,
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 qui
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
> change I made was based on
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 Grou
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
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 time
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
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 e
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 2.4
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 m
oh, found this already: http://code.google.com/p/django-tagging/
which is all i need actually :)
On Apr 15, 1:04 pm, "ashwoods" <[EMAIL PROTECTED]> wrote:
> there is an app that i would like to make that would build on that
> funcionality...
> but try to google that
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" grou
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
> w
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
>docstr
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 clie
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 cli
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
>
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
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.
O
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 functional
sor
> uses the "news" view so it can display the recent news from the
> database.
>
> In my base.html template, I've made room for the login form. When
> someone goes to the index page, all I want django to do is use the
> view that generates the news, as well as use t
mplatetags 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,
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
>
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:
>
> Tra
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 dja
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 machine
well, i dont like the translatable fields with different extensions
either. but maybe someone else might (for his reasons, maybe a
performance matter (although i don't know how much the difference would
be really). the only thing I am advocating is to write everything
uncoupled so that if someone
> 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 = I18
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:
to many threads open with same topic. this thread will now be discussed
HERE:
http://groups-beta.google.com/group/django-users/browse_thread/thread/6a96426735ffd7f1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"D
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 example, it
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
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
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
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 conten
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
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 MyProj
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 d
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 e
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 an
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
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
>
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 appoint
instead of apps)
On Jan 14, 1:42 am, "spacedman" <[EMAIL PROTECTED]> wrote:
ashwoods wrote:
> a simple open and free CMS would be good for a lot of people, specially
> the newcomers. the problem is how to design a CMS that doesn't limit
> the freedom you learn to love
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
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 comm
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:
-- something
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.
To
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 a
53 matches
Mail list logo