On Tuesday, 13 November 2012 20:10:38 UTC, Colin Keenan wrote:
> By the way, I just checked django.VERSION and it's (1, 6, 0, 'alpha', 0)
>
> So, since version 1.6 is supposed to fully support python 3, I should be
> fine. Obviously, being 'alpha' means I'll run into trouble, but I'll keep
> che
Good morning
I have 2 diffrent views, every one i just needet on one page... till now.
view one-output is the time-
@csrf_protect
def portal(request):
now = datetime.datetime.now()
return render_to_response('portal.html', {'current_date': now},
context_instance=Reques
Do you actually need both as views proper? The easiest thing would be to
factor out the fetching part of the kundendaten view, make that return just
a dictionary, then call that and update the context in the first view.
--
You received this message because you are subscribed to the Google Group
I need both together, because later i need another output from another
database (lotus notes (i hate it)) on the same page. Can you make a code
for me? im really not good (a new user)... when one part works, maybe i
know than how to implements the next database by myself. :)
Am Mittwoch, 14. No
Hi all,
I've got a problem deploying my new app that i designed on my personal
server that i run on my computer and i would like some help to deal with
this.
Here's the problem. You can see down here what happens when I try to
visualize my home page :
ServerName: '127.0.1.1'
DocumentRoot: '
>>> user.user_permissions.all()
[, , , ,
, ]
>>> user.has_perm('structures.edit_post')
False
>>> user.has_perm('structures.create_post')
False
>>>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https:
When I do user.has_perm(), I get FALSE, but I have added permissions to
user manually with user.user_permissions.add(51) on the django
console/shell, and I even show all the permissions
with user.user_permissions.all(). (Also, if i
use user.has_perm('sdlfjksdf'), it returns FALSE rather than a
Hi Isaam!
Do you have a specific reason for using mod_python?
This module is old and deprecated. The recommended way is to use other
modules, many people use mod_wsgi which is really simple to deploy and use.
HTH
Jirka
-Original Message-
From: Issam Outassourt
Sender: django
Well
I started discovering django through the djangobook.
I'll try wsgi and let you know.
Thabks for your help
Le 14 nov. 2012 14:21, a écrit :
> **
> Hi Isaam!
>
> Do you have a specific reason for using mod_python?
>
> This module is old and deprecated. The recommended way is to use other
> mod
But I had already run "python manage.py syncdb" before, bizarre.
Thanks for your responses.
Le mardi 13 novembre 2012 22:55:14 UTC+1, JirkaV a écrit :
>
> >The reason is that I should add in the table "django_site" of
> my database : domain and name, I did it : insert into django_s
On Tue, Nov 13, 2012 at 11:44 PM, Vibhu Rishi wrote:
> Would this not work :
>
> count = i.objects.filter(activities=Activity).count()
>
> Where you would put the count in a for loop for the Activity and iterate
> over it.
>
> V.
>
>
> On Wed, Nov 14, 2012 at 5:05 AM, Nikolas Stevenson-Molnar <
>
Why not manually drop the database for your project and syncdb again.
Also make sure you have the admin app included in your installed apps
settings
On 11/14/12, XIE Enming wrote:
> But I had already run "python manage.py syncdb" before, bizarre.
> Thanks for your responses.
>
> Le mardi 13 no
On Tue, Nov 13, 2012 at 11:40 PM, Juan Pablo Tamayo wrote:
> Let me explain, I have a nested dictionary like:
>
> agenda = {'3': {'2012-11-11': , '2012-11-14': , ...},
> '7': {'2012-11-9': , },
> '2': {'2012-10-28': },
> }
>
> And I want to access it by specifying the two keys. I've red that
On Tue, Nov 13, 2012 at 8:49 PM, luke lukes wrote:
> Hi everyone. hi have these models:
>
> #models.py
>
> class Subject(models.Model):
> name = models.CharField("Name",max_length=50, blank=True)
> ...
> ...
>
> class Activity(models.Model):
> label = models.CharField("Act. name",max_length=
Thank you all. I have fix my issue icons sorteddict from the Python
collections.
Juan Pablo Tamayo H
Sent from my Android phone
On Nov 14, 2012 11:38 AM, "Bill Freeman" wrote:
>
>
> On Tue, Nov 13, 2012 at 11:40 PM, Juan Pablo Tamayo wrote:
>
>> Let me explain, I have a nested dictionary like:
>
I believe default permissions created are: add_*, change_* and delete_*.
And the format for a permission would be something like: *app_name*.add_*
model_name*
So what happens when you try:
user.has_perm('structures.add_post')
user.has_perm('structures.change_post')
If you are registering your ow
Good point. At the moment, sending mail is my priority, but eventually
I'll want to receive and view mail as well. Most guides I can find relate
to setting up both sides of the story, so I figure I might as well just do
it all at once.
On Tuesday, November 13, 2012 2:39:11 PM UTC-5, Dennis Le
Hi. The new index_together feature is great, but I think it's best to
create an index on a table AFTER the table is filled, and assuming there
won't be many new inserts. But in django, syncdb creates the index at the
same time the table is created, and of course, the table is initially
empty.
On Wed, Nov 14, 2012 at 3:14 PM, Chris Pagnutti
wrote:
> The new index_together feature is great, but I think it's best to create an
> index on a table AFTER the table is filled, and assuming there won't be many
> new inserts.
AFAIK, this is an optimization advice applicable only for mostly-stati
Thanks for your reply. The tables I'm dealing with are entirely static,
but some have many millions of records, which is why I want my indexes to
work as good as possible. If I create my indexes manually AFTER populating
the tables, will queries made via the django db api on those tables use
thos
On Wed, Nov 14, 2012 at 3:49 PM, Chris Pagnutti
wrote:
> Thanks for your reply. The tables I'm dealing with are entirely static, but
> some have many millions of records, which is why I want my indexes to work
> as good as possible. If I create my indexes manually AFTER populating the
> tables,
On Wed, Nov 14, 2012 at 5:13 PM, Daniel Roseman wrote:
> On Tuesday, 13 November 2012 20:10:38 UTC, Colin Keenan wrote:
>
>> By the way, I just checked django.VERSION and it's (1, 6, 0, 'alpha', 0)
>>
>> So, since version 1.6 is supposed to fully support python 3, I should be
>> fine. Obviously, b
Webmail function as a django application = Totally awesome idea.
I'll probably need some other email addresses for non-administrator users,
so a friendly client would be nice. Roundcube should do the trick for now,
but integrating the webmail into the django app itself would be rad.
On Wed, No
Hi All
i have a middleware that override the response.template_name variable
class MyMiddleware(object):
def process_template_response(self,request, response):
response.template_name = ("%s/%s"%("admin",request.template_name))
the view is very easy
class Admin_HomeView(TemplateView
Awesome. So I don't even have to declare the "index_together" in the
django models? I can just create them afterwards using pure mysql?
LOAD DATA INFILE is wicked fast!!! Thanks a ton for that one.
On Wednesday, November 14, 2012 4:36:49 PM UTC-5, Javier Guerra wrote:
>
> On Wed, Nov 14, 2012
Hi,
I am having a problem with integrating Ajax History Back Button using
Really Simple History (RSH) and YUI with Django.
If anyone has integrated either of the two with Django, I would really
appreciate your help.
The reason why I need to integrate RSH or YUI is :-
I have a html template whic
Keep in mind that whatever RDBMS you are using is completely separate from your
application. You can alter it out from under the app in any way you see fit.
The code offers some convenience methods for generating things, but that
doesn't tie the two together more than an expectation on the appli
Hi Yacov,
If you have confirmed that there are more than one django
installations on your computer, what I can say is crazy things happen
with more than one django installed. Even if you manage to pass this
hurdle, there's a lot more ahead.
On 11/13/12, Yacov Schondorf wrote:
> Just to clarify -
28 matches
Mail list logo