It is hard to see with the indentation as it is, but it seems you are
not returning an http response if the 'if id is none:' You are
building the form for model, but it doesnt look like it is returned.
The bottom line seems to be indented to correlate to the if
request.method not the
I tried the following but it fails in flames with "http response
required..." I've followed the documentation - am I called the
function correctly by a url with "/mymodel_addedit"Can someone help ?
urls.py
r'^mymodel/addedit/$', 'myproject.myapp.views.mymodel_addedit'),
views.py
def
On 28-Sep-07, at 12:31 AM, Tim Chase wrote:
> (whether via hitting the "manage.py runserver" server, or
> actually pointing at it via your production web server). Python
> will notice that the .pyc is out of date and automatically
> rebuild it for you. This happens so quickly, it's almost
>
Richard
I am currently developing an interface that will need to use role
based row level permissions and would be greatful for anything that
you are willing to share.
Catriona
On Sep 28, 8:53 am, Richard Dahl <[EMAIL PROTECTED]> wrote:
> If you are interested, I would love to collaborate on
If you are interested, I would love to collaborate on some ideas of
doing this. I have an role-based system working pretty well as of
now, but it does not, as of yet integrate with the admin interface.
If you have any interest I would be more than willing to share some
of what I have
For what it's worth, the problem is that my host only allows the FCGI
file for django to be called "dispatch.fcgi". All other names are
invalid.
I found this reason b/c it is the same as another host is doing
(DreamHost)
I'll do that
On 9/27/07, Richard Dahl <[EMAIL PROTECTED]> wrote:
>
> There is a row-level-permissions branch, but I do not believe it is
> actively being developed at this time. I wrote my own role-based permission
> system and integrated it into all of my models that require it. I have not
>
I solve this problem adding a custom manager with get_query_set method
overridden to the admin interface. I don't know if this is the right way but
it solve my filtering problems in the change list. Any suggestions?
class AnyModel(models.Model):
...
class Admin:
manager =
hi jose
Lic. José M. Rodriguez Bacallao wrote:
> how can I limit items in "change list" of the admin interface?
the admin will use your model's default manager (the first specified
manager) to filter results.
more information here:
On 9/27/07, Prateek Parekh <[EMAIL PROTECTED]> wrote:
> Also, i have recently enabled a couple of apps in the settings.py and
> urls.py, but i haven't been able to access them in my website. Does
> this also require a restart?
Any change of any sort to any part of your code, other than HTML in a
http://windowsfreetips.blogspot.com/
--~--~-~--~~~---~--~~
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
Hello,
I am trying to get my django app to work using FastCGI on my host,
ASmallOrange. Their guides are out of date for doing this correctly.
I have established that fastcgi is working in the general case, as
this test.fcgi file works from both the command line, and from the web
browser
Thanks a lot for your response. Yes, i am running django on a linux
machine and apache server. And, i haven't been able to see the changes
that i made in the views.py get reflected on my website. So, i guess,
i'll have to restart the apache server.
Also, i have recently enabled a couple of apps
> i have to quickly make a few changes. I have replaced one
> email address in views.py by another. Now, i'd like to know if
> i need to recompile this views.py file, and if so what is the
> exact command ( will python views.py work).
It's non-obvious if you're coming from the compiled-language
how can I limit items in "change list" of the admin interface?
--
Lic. José M. Rodriguez Bacallao
Cupet
-
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
mismo.
Recuerda: El arca de Noe fue construida por
Hi!
What you ask about depends on your environment's configuration. If
you have an application behind a web server like for example Apache it
should be enough to restart that server. If your applications is
started with ./manage.py runserver it should automatically read newer
version of file
Hi,
I am quite new to django framework, and was looking at an application
developed by someone else. And, i have to quickly make a few changes.
I have replaced one email address in views.py by another. Now, i'd
like to know if i need to recompile this views.py file, and if so what
is the exact
On Sep 26, 11:33 pm, DJango Fett <[EMAIL PROTECTED]> wrote:
> Here are the steps I would use to add a field to an existing model
> without having to write your own SQL and without the risk of getting
> your model code out of sync with your database table. This code uses
> the same objects in
...
> However, if I mimic the wsgi script as follows:
>
> cd /home/missed/django/projectsmt/
> python
>
> >>> import os, sys
> >>> sys.path.insert(0, '/home/missed/django')
> >>> sys.path.insert(0, '/home/missed/django/projectsmt')
> >>> os.environ['DJANGO_SETTINGS_MODULE'] =
There is a row-level-permissions branch, but I do not believe it is actively
being developed at this time. I wrote my own role-based permission system
and integrated it into all of my models that require it. I have not
attempted to integrate the permission system into the admin interface
though.
yes, I know I can do something like that but, how can I do it in the admin
interface?
On 9/27/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>
>
> > hi people, I got a little question, how can I make some users add news
> > (model News), modify only news owned by him or even delete his news, not
> >
> hi people, I got a little question, how can I make some users add news
> (model News), modify only news owned by him or even delete his news, not
> others users news, but only admins can publish all of them?
http://www.djangoproject.com/documentation/authentication/#permissions
The stock
You may write special admin interface or wait when low-level
permission will be placed in django.
On 27 сент, 16:54, "Lic. Jos M. Rodriguez Bacallao"
<[EMAIL PROTECTED]> wrote:
> hi people, I got a little question, how can I make some users add news
> (model News), modify only news owned by him
On Sep 27, 8:36 am, "Jon Atkinson" <[EMAIL PROTECTED]> wrote:
> Is anything happening with this project, or has it died on the vine?
>
Just a noob here, but why would Django need a Capistrano-like thing?
Rails needs it in order to marshal 5 mongrel processes per
application, etc etc, for
On 9/27/07, AniNair <[EMAIL PROTECTED]> wrote:
>
> Hi..
> I am trying to load some initial data using yaml. My model in utils
...
> I tried model: utils.Month too, but the result is the same It then
> says invalid model identifier utils.Month . Please advice.
Add a sample object using the
http://spielwelt6.knightfight.de/?ac=vid=121044096
--~--~-~--~~~---~--~~
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
Hi..
I am trying to load some initial data using yaml. My model in utils
is
from django.db import models
class Months(models.Model):
id=models.CharField(primary_key=True, max_length=3)
m_name=models.CharField(max_length=15)
class Admin:
pass
My yaml file is
- fields:
It's a bad idea to use the 'postgres' user account since this account
is the Postgresql *superuser* account. Which means, with this account
it is possible to do some serious damage to the system catalogs. You
should create a separate Postgres user account and create a database
for it.
First
hi people, I got a little question, how can I make some users add news
(model News), modify only news owned by him or even delete his news, not
others users news, but only admins can publish all of them?
--
Lic. José M. Rodriguez Bacallao
Cupet
hi i am having problem with relating objects. i have models as below
class support():
suptype = models.CharField(maxlength=255)
class DispMaster():
dmtype=models.ForeignKey(support)
class DataDispMaster():
ddmmaster=models.ForeignKey(Master)
class Master():
class DataMaster():
or, if you haven't, add the line
local all postgres password
be aware that this will allow the user postgres (once password
authenticated) to access all the databases. If you don't want it, change
'all' to you porject's database name .
On 9/27/07, Kenneth Gonsalves <[EMAIL
Is anything happening with this project, or has it died on the vine?
--Jon
On 9/13/07, rex <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I'd be interested in helping with writing a Capistrano replacement for
> Django in python (not a port!).
> I'm relatively new to django sites, but quite an old
Good day,
I am getting an error when trying to parse a VLOOKUP formula to Excel.
ws1.write(row_num, 8, Formula("VLOOKUP(G2;Discounts!A2:B28;2;0)"))
It seems to have a problem with the exclamation mark. Any hint would
help.
Thank You
PB
--~--~-~--~~~---~--~~
i think you are using windows.
try adding "MaxRequestsPerChild 1" (without quotes) to
httpd.conf,
you can change this setting later after reading how apache handles
requests. i think that wouldn't be required for you now.
also put your application to the python path (you can try initial
hi again
I'm writing custom scientific reference management application and
encountered a strange thing, cannot understand if it is bug or
feature, see example models.py:
from django.db import models
class Author(models.Model):
name = models.CharField(maxlength=50)
class
hi all
I started to use django recentely (actually python also...) and
use
doctests for testing my application. For doctest I fill test
database
with a lot of data. I'm wondering is it possible to keep them and
use
later to see from web interface if they are really what
On 9/27/07, Michael <[EMAIL PROTECTED]> wrote:
>
> Hi group,
>
> Is python 2.3.5 supported by svn?
Python 2.3 is officially supported. However, occasionally Python2.3
incompatible constructs accidentially slip in.
> under python 2.4 work fine. The problem is that I have some other
> software
Hi group,
Is python 2.3.5 supported by svn?
After update to rev 6426 from 5891 got an error whe n trinyg to logon
into admin interface as user
( admin work fine):
NameError at /admin/
global name 'set' is not defined
Request Method: GET
Request URL:http://127.0.0.1:8080/admin/
On 27-Sep-07, at 1:32 PM, Heba Farouk wrote:
> psycopg2.OperationalError: FATAL: Ident authentication failed for
> user "postgres"
edit your pg_hba.conf file and set authentication to 'password'
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Hello,
i'm using postgres with django on ubuntu 7.04. when i try to syncdb, i got
that error:
Traceback (most recent call last):
File "./manage.py", line 11, in
execute_manager(settings)
File
"/usr/local/lib/python2.5/site-packages/django/core/management/__init__.py",
line 264, in
which os you are using??
is your site-packages directory under system path??
and can you paste lines from httpd.conf, urls.py and settings.py where
you have made modifications.
On Sep 26, 6:49 pm, swati <[EMAIL PROTECTED]> wrote:
> I have configured httpd.conf, you can look at it
>
41 matches
Mail list logo