I undestand that
- Installed apps are identified by 'package name' for the purpose of
settings.INSTALLED_APPS, but are identifed by 'applabel' for the
purpose of `manage sqall`.
- The appname is derived from the final dotted component of the
package name.
Doesn't this create an unecessary const
Karen,
Humm. Ah. Yes. Obvious, isn't it! Thanks.
On Aug 16, 8:13 pm, Karen Tracey wrote:
> On Sun, Aug 16, 2009 at 1:28 PM, rmschne wrote:
>
> > I'm extracting data from a database and then cross-tabbing the data
> > (with some Python) code to create a list of dictionary data. Because
> >
Thanks, I don't though about users perms !
Grappelli just turn your admin more pretty, you should try:
http://code.google.com/p/django-grappelli/ !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
On Tue, Aug 18, 2009 at 6:10 AM, JF Simon wrote:
>
> Hi men,
>
> I'm using Django + Grappelli and I'd like to know if there is a simple
I don't know about grappelli, but I'd expect it to be at least as
configurable as the standard django admin interface.
> way to make some improvements to the d
Hi men,
I'm using Django + Grappelli and I'd like to know if there is a simple
way to make some improvements to the dashboard (index) of the admin
such as :
- hide modules (like Django_Evolution)
- merge modules (Auth entries with my User module)
- rename existing modules (not for now, just to k
You can google it. I have read once, but forget the link address now.
2009/8/18 sjtirtha
> Hi,
>
> can some body share about his experience using Django and CouchDB?
> I found some python API that can be used to access CouchDB, which one is
> the best and suitable to Django Framework.
>
> Regard
On Mon, Aug 17, 2009 at 8:39 PM, ringemup wrote:
>
> I'm sure I'm doing something wrong, but I can't figure out what. The
> list, add, and change links on the admin index all point to the
> correct URLs, but all URLs under /admin are returning the admin index
> page rather than the appropriate vi
On Tue, Aug 18, 2009 at 11:41 AM, Victor Hooi wrote:
>
> heya,
>
> I was just wondering if anybody knew if the source to the tagging/
> bookmarking part of Jacob's site has been made available?
>
> http://jacobian.org/tags/
>
> Or if there's any other django projects that provide something
> simi
heya,
I was just wondering if anybody knew if the source to the tagging/
bookmarking part of Jacob's site has been made available?
http://jacobian.org/tags/
Or if there's any other django projects that provide something
similar? It seems fairly simple, but it's quite well done, and I was
just h
Thank you for your comments!
> First, there is no need to have the username in the URL if this page
> is visible only to the logged-in user. Instead, use the request.user
> object inside your view (and, if necessary, the template).
>
The idea is that the profile page(what i have in my mind at lea
sorry -- already a fix:
http://code.google.com/p/django-tinymce/issues/detail?id=22&can=1&q=image&colspec=ID%20Type%20Status%20Priority%20Milestone%20Reporter%20Owner%20Summary
On Aug 17, 7:31 pm, Cody Django wrote:
> I really don't know what is going on here. I've checked all my
> settings fo
Hi,
Are you guys using the TinyMCE media files from a domain different
from your admin site location? If so, you must point the media files
(or at least the tiny_mce ones) to the same domain, because this addon
tries to control the parent window from the popup window, and, if
they're different, t
the problem is that logging to a file is not going to work in a multiprocess
environment. I'm using the logging library configured to log to syslog with
fcgi and it is working out quite well.
On Mon, Aug 17, 2009 at 11:10 AM, Mike Ramirez wrote:
> On Monday 17 August 2009 10:24:18 am Lokesh Mare
Hello django users,
I'm trying to override the __init__ method in forms.py for an
application that extend the admin site.
I'm doing this to initialize a ModelChoiceField of the form with user
logged in, informations, so I'm trying to retrieve the user in my
__init__ method... but I think I'm miss
Just a couple brief thoughts.
First, there is no need to have the username in the URL if this page
is visible only to the logged-in user. Instead, use the request.user
object inside your view (and, if necessary, the template).
Second, to retrieve various info about the user there is no need for
That's a given. But thanks for your input, very helpful!
On Aug 18, 6:53 am, Wayne Koorts wrote:
> > Nobody can help me with this?
>
> If somebody:
>
> a) Has the answer and,
> b) Has the time and,
> c) The inclination to provide the answer, then they will do so.
--~--~-~--~~
I'm sure I'm doing something wrong, but I can't figure out what. The
list, add, and change links on the admin index all point to the
correct URLs, but all URLs under /admin are returning the admin index
page rather than the appropriate views.
Using the following urls.py under Django 1.1:
from d
I really don't know what is going on here. I've checked all my
settings for django-filebrowser and django-tinymce.
1) Using tinymce in admin, I'll click on "add image"
2) Click on "filebrowser" icon in the image-prompt window, which opens
the filebrowser window
3) Click on an image, which opens
On Mon, Aug 17, 2009 at 10:40 PM, Jonas Obrist wrote:
>
> Here's what I did:
>
> I took the built in auth system and changed it a bit, or to be more
> precise I changed all imports within auth (because I moved it within the
> pythonpath) and edited models.py:
>
> http://dpaste.com/81651/
>
> Whol
Thanks Jonas.
Quick question - The difference in the models.py is I guess addition
of these two imports -
from django.db.models import get_model
from django.conf import settings
A dumb question, when you say "moved it within the pythonpath", what
exactly does it mean ?
On Aug 17, 8:40 am, Jona
hi, i am new to django-universe. My goal is to make to make my first
django application!
I am trying to get a grip on the authentication system. I 've
implemented login and logout operations. After a successful login i
want the user transferred to his profile page.
The profile page url looks li
> Nobody can help me with this?
If somebody:
a) Has the answer and,
b) Has the time and,
c) The inclination to provide the answer, then they will do so.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
Nobody can help me with this?
On Aug 15, 10:14 am, Gee wrote:
> Hi,
>
> I am trying to build aformwizardthat includes a manytomany
> relationship on one of the steps and I am stuck on to implement the
> manytomany. The models are, (only for step in question)
>
> class Person(models.Model):
>
On Mon, Aug 17, 2009 at 1:31 PM, mettwoch wrote:
>
> Hi,
>
> I use a session to store several instances of different models coming
> from a:
>
> some_model.objects.get(pk = some_pk)
>
> When the data in the db changes the model instances in the session
> still contain the old data. What would be a
Hi,
I use a session to store several instances of different models coming
from a:
some_model.objects.get(pk = some_pk)
When the data in the db changes the model instances in the session
still contain the old data. What would be a good strategy to make
shure that all objects in a session get fre
On Monday 17 August 2009 01:10:33 pm Fluoborate wrote:
> Hello All,
>
> I am being very perplexed and annoyed by models.FileField database
> fields. I have two problems:
>
> 1. The filefield.url attribute gives the path on my hard disk, not the
> internet URL that the file is being served to. The f
Thanks a lot, Javier! There were a few caveats to getting this to work
for me, but I've gotten there, finally!
For anyone else who wants to use this solution, check out this posting
by a bloke named Andre, who was extremely helpful when I emailed him
asking for a bit of a hand:
http://andre.liqu
Hello All,
I am being very perplexed and annoyed by models.FileField database
fields. I have two problems:
1. The filefield.url attribute gives the path on my hard disk, not the
internet URL that the file is being served to. The filefield.path and
filefield.name attributes also give the exact sa
Hi. I hope someone can help me out.
For my project i use entirely djagno admin interface. I Chose it
because everything gets done by itself. So now i need to add a form
more precisely for example one check-box, that it will be read when i
execute save(). I don't want to add boolean field to my
Hi
My app saves data in a method with "@transaction.commit_manually".
My code had a bug - a field in a model was the wrong datatype for what
was passed in, so I got a DataError exception back.
However, the only exception that was displayed to me was
"psycopg2.InternalError: current transaction
Hi,
can some body share about his experience using Django and CouchDB?
I found some python API that can be used to access CouchDB, which one is the
best and suitable to Django Framework.
Regards,
STeve
--~--~-~--~~~---~--~~
You received this message because you ar
Hello
On sunday i had problems with python when i installed stackless
python. Now i have compiled and installed :
setuptools & python-mysqldb and i got my django project up and running
again. (i also reinstalled django-1.1),
Then i compiled and installed, jpeg, freetyp2 and PIL. I also started
us
On Monday 17 August 2009 10:24:18 am Lokesh Maremalla wrote:
> Hi,
>
> Included django-logging as described in the link.
>
> From the django-logging I can view the log messages on the screen at run
> time. But, I am not sure on saving the log messages from django-logging.
> Can I capture the log me
Hi,
Included django-logging as described in the link.
>From the django-logging I can view the log messages on the screen at run
time. But, I am not sure on saving the log messages from django-logging.
Can I capture the log messages into my log file on a daily basis instead of
redirecting to scree
On Mon, Aug 17, 2009 at 11:10 AM, Marek Wawrzyczek wrote:
>
> Hi,
>
>
> I've got an application called myapp
>
> In the main folder of django project there is initial_data.json file
> containing initial data for the application
> I also have file "simplefix.json" situated in myapp/fixtures
> conta
On Mon, 2009-08-17 at 11:10 -0400, Marek Wawrzyczek wrote:
> Hi,
>
>
> I've got an application called myapp
>
> In the main folder of django project there is initial_data.json file
> containing initial data for the application
> I also have file "simplefix.json" situated in myapp/fixtures
> con
Hi All,
I'm trying to figure how to get the CSS to work on the /admin part of my
django project. Based on the same settings.py the /admin show correctly when
run with:
python ./manage.py runserver 192.168.1.72:8000
When I run it via fcgi like this:
python ./manage.py runfcgi host=192.168.1.72
On Monday 17 August 2009 07:56:48 am Lokesh wrote:
> Hi,
>
> I am trying to implement the logging (Code flow tracking) for my
> Django application.
> I would like to store the log messages on daily basis for my
> applications.
>
> Need help or suggestions on how we can implement the logging mechani
On Mon, Aug 17, 2009 at 10:20 AM, Streamweaver wrote:
> It works fine for me with Python 2.6 on Linux (with the errors
> mentioned above) . Windows is a bit of a problem as the mysql-python
> library doesn't yet support 2.6.
Since this has come up several times in different threads recently...
On Mon, Aug 17, 2009 at 2:17 PM, Lokesh wrote:
> I am trying to implement logging mechanism using Python library. But,
> I am not sure on which mechanism/methodology used for Django
> applications.
>
> Is there any predefined process or methodology to be followed for
> Django applications for log
It works fine for me with Python 2.6 on Linux (with the errors
mentioned above) . Windows is a bit of a problem as the mysql-python
library doesn't yet support 2.6.
On Aug 17, 12:32 am, Continuation wrote:
> According to the site of the python MySQL driver it only supports
> Python 2.3 - 2.5:ht
Hi,
I am trying to implement logging mechanism using Python library. But,
I am not sure on which mechanism/methodology used for Django
applications.
Is there any predefined process or methodology to be followed for
Django applications for logging mechanism.
Regards,
Lokesh
On Aug 17, 8:05 pm,
Hi,
I've got an application called myapp
In the main folder of django project there is initial_data.json file
containing initial data for the application
I also have file "simplefix.json" situated in myapp/fixtures
containing initial data for tests
Then after calling: python manage.py test mya
On Mon, Aug 17, 2009 at 1:56 PM, Lokesh wrote:
>
> I am trying to implement the logging (Code flow tracking) for my
> Django application.
> I would like to store the log messages on daily basis for my
> applications.
>
> Need help or suggestions on how we can implement the logging mechanism
> for
That's a good idea. So you are suggesting, for example, that when the
threadedcomment gets saved, that my app catch the post save signal and
take its action then? I like that idea, I'm going to play around with
that today. I hadn't thought about using signals before, but I guess
that is the ob
Hi,
I am trying to implement the logging (Code flow tracking) for my
Django application.
I would like to store the log messages on daily basis for my
applications.
Need help or suggestions on how we can implement the logging mechanism
for an application.
Regards,
Lokesh
--~--~-~--~~
Thanks!
On Aug 17, 11:53 am, David Zhou wrote:
> On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote:
> > My problem is that even if the 'projects' queryset is empty, it still
> > includes the projects.html
> > Is there another way to do it?
>
> If you're using at least Django 1.1, you can use the emp
Hi Tibor,
On Mon, Aug 17, 2009 at 4:17 AM, gentlestone wrote:
>
> I'm looking for a support for something like Eric Evans Value Objects
> (http://domaindrivendesign.org/). For example, if I have a Person
> model like
>
> class Adress(models.Model):
> street = ...
> city = ...
> postal_co
On Aug 14, 4:26 pm, Daniel Roseman wrote:
> On Aug 14, 3:50 pm, Léon Dignòn wrote:
>
> > Hi Emily,
>
> > thanks so far!
>
> > unfortunately this line:
>
> > > instance = getattr(kwargs, 'instance')
> > throws this error:
> > > Exception Value: 'dict' object has no attribute 'instance'
>
> > wh
Hi,
Thanks for the help. I thought there would be django's official built
in
functionality which i might have missed, but looks like i have to
use unofficial third party code.
On Aug 14, 6:49 pm, Benjamin Wohlwend wrote:
> Hi,
>
> On Aug 14, 8:54 pm,sniper wrote:
>
> > I am asking this because
For sending html I would rather do :
from django.core.mail import EmailMessage
from django.template import Context, loader
t = loader.get_template('email.html')
c = Context({'variable': variable,})
data = t.render(c)
msg = EmailMessage("subjet", data, "sen...@foo.com",
["recipi...@bar.com"])
msg
Here's what I did:
I took the built in auth system and changed it a bit, or to be more
precise I changed all imports within auth (because I moved it within the
pythonpath) and edited models.py:
http://dpaste.com/81651/
Whole code:
http://www.ojii.ch/auth.tar.gz
If you wanna use it:
Add the
Ah thank you!
I was also putting permissions inside BaseModel.Meta.permissions
where BaseModel.Meta.abstract = True.
When I put permissions inside MyModel.Meta.permissions, it showed up
after flushing out and re-syncdb.
I guess I will repeat permissions for each derived model class.
Thank you ag
On Aug 16, 9:31 am, Mirat Bayrak wrote:
> I have that problem too, is there any other solution?
Hi Mirat
I'm not sure what problem you mean. Is the problem that you can't use
RequestContext for some reason? Or is there another reason why you
can't do it that way?
--~--~-~--~~
On Mon, Aug 17, 2009 at 6:39 AM, Adonis wrote:
> My problem is that even if the 'projects' queryset is empty, it still
> includes the projects.html
> Is there another way to do it?
If you're using at least Django 1.1, you can use the empty tag:
http://docs.djangoproject.com/en/dev/ref/templates
On Mon, Aug 17, 2009 at 5:39 AM, Adonis wrote:
> My problem is that even if the 'projects' queryset is empty, it still
> includes the projects.html
> Is there another way to do it?
Consult the documentation:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#for-empty
--
"Bureaucrat
Guys,
I have a quick question. I am attracted to django due to its
flexibility however there is something bothering me now.
My question is can I use a custom table, say "consumer" instead of the
one provided my django ?
Here are the reasons -
1.) I have my whole DB model around this consum
Hi all,
I am doing this
{% for item in projects %}
{% include projects.html %}
{% endfor %}
My problem is that even if the 'projects' queryset is empty, it still
includes the projects.html
Is there another way to do it?
Regards,
--~--~-~--~~~---~--~~
You r
Trevor,
I've had problems with the same combination of tools. For me Popup
windows are completely blank. But after adding document.domain as
below I could get the popups to work but only in Firefox and Safari (I
think).
Updated yourApp/yourMediaFiles/js/tinymce/tiny_mce_popup.js for
document.dom
hi
now it works, i think i only had to restart my computer, doessent know
why, but it works
thanks to all
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
Hi!
I am working on a project with multiple sites and are using the
contrib.site app to separate them from eachother. The number of sites
will be high and changing often, so I don't want to modify the Apache
config and create a new VirtualHost/Location for each new site. I have
solved this by wri
hi
now it works, i think i only had to restart my computer, doessent know
why, but it works
thanks to all
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
I'm looking for a support for something like Eric Evans Value Objects
(http://domaindrivendesign.org/). For example, if I have a Person
model like
class Adress(models.Model):
street = ...
city = ...
postal_code = ...
class Person(models.Model):
home_adress = models.OneToOneField(
On Aug 17, 8:06 am, Léon Dignòn wrote:
> Hello,
>
> I use an extended User Model and like to display these fields in the
> admin view at Auth/User. Can anybody show me how this works?
>
> Thanks
>
> -LD
Create your own admin class for your extended User model, inheriting
from the one in contrib.
Great! Thanks!
No idea how im gonna do that since i have no idea where/how to get
that source code and do it, but at least i know what to do.
Alan.
On Aug 17, 1:44 am, Graham Dumpleton
wrote:
> On Aug 16, 10:43 pm, zayatzz wrote:
>
> > apparently installing mod_wsgi was not the instant get ou
On Aug 16, 2:29 pm, sam lee wrote:
> I run syncdb and runserver
[...]
> But I don't see the myapp | test_perm listed under Permissions field.
permissions are stored in db, syncdb doesn't alter existing tables, so
your permission will not show up in your admin.
As the Fu..Funny Maunal say:
htt
For what you describe, you're not looking for "global" variables in
the sense that you want some value persisted in the same process.
You're looking at session variables, which are variables persisted for
a specific user session.
See:
http://docs.djangoproject.com/en/dev/topics/http/sessions/
H
I`ve got an application developed for PCs and I want to make it
available for mobile devices. There are only some slight differences
between booth two versions, so I think is not worth while to develope
different applications. Instead, I've decided to develope an only
application in which I need a
Hello,
I use an extended User Model and like to display these fields in the
admin view at Auth/User. Can anybody show me how this works?
Thanks
-LD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" gro
69 matches
Mail list logo