Re: User Permissions

2013-07-30 Thread Jani Tiainen
On Tue, 30 Jul 2013 16:39:27 -0300 Carlos Leite wrote: > Django do not have a "per-row" permission system in the box. > You will have to create that by yourself. That is slightly incorrect - Django _does_ have foundation for object (row) level permission system. There is

Using standard Django admin User forms for Custom User model?

2013-07-30 Thread Victor Hooi
Hi, When you add a Django User through the admin, it presents you with a initial screen to enter a username and password (/admin/auth/user/add/), and then handles hashing for you. Also, when you go to edit a User, it gives you a Change Password form (e.g. /admin/auth/user/2/password/) I'm

Re: Django Dashboard

2013-07-30 Thread Andre Terra
On Tue, Jul 30, 2013 at 3:16 PM, Charly Román wrote: > > You can try with pydashie, a python port of ruby version: > https://github.com/evolvedlight/pydashie Except that's Flask, not Django. Cheers, AT -- You received this message because you are subscribed to the

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Jared Nielsen
Thanks everyone! This was all very useful advice. Wish I had known all this days ago... On Tue, Jul 30, 2013 at 9:00 AM, Javier Guerra Giraldez wrote: > On Tue, Jul 30, 2013 at 10:48 AM, Jared Nielsen > wrote: > > I started setting up Apache with

Re:

2013-07-30 Thread Phil
Shouldn't you dedicate a specific path to your flat pages, like this: (r'^pages/', include('django.contrib.flatpages.urls'))? The documentationalso indicates that you can use a "catchall" pattern, but AFTER any other URL patterns.

Re: User Permissions

2013-07-30 Thread John DeRosa
Take a look at django-guardian. (http://pythonhosted.org/django-guardian/) John On Jul 30, 2013, at 12:39 PM, Carlos Leite wrote: > Django do not have a "per-row" permission system in the box. > You will have to create that by yourself. > > You may start adding something

Re: User Permissions

2013-07-30 Thread Carlos Leite
Django do not have a "per-row" permission system in the box. You will have to create that by yourself. You may start adding something like "owner" to your content type. this field will be somthing like owner = models.ForeignKey(User) then, based on "request.user" in your views (for instance),

Re: Django Dashboard

2013-07-30 Thread Simon Charette
I'd suggest you take a look at django-admin-tools . Le mardi 30 juillet 2013 14:09:00 UTC-4, Martin Marrese a écrit : > > Hi, > > I'm looking for a Django Dashboard to implement on an existing app. A > colleague recommended Dashing (1),

Re: Django Dashboard

2013-07-30 Thread Charly Román
2013/7/30 Martin Marrese : > Hi, > > I'm looking for a Django Dashboard to implement on an existing app. A > colleague recommended Dashing (1), but thats a Sinatra app, however I do > like how it looks. > > Does anyone have a recommendation ? > > Thanks, > Martín > > Links > 1 -

Django Dashboard

2013-07-30 Thread Martin Marrese
Hi, I'm looking for a Django Dashboard to implement on an existing app. A colleague recommended Dashing (1), but thats a Sinatra app, however I do like how it looks. Does anyone have a recommendation ? Thanks, Martín Links 1 - http://shopify.github.io/dashing/ -- Martin Marrese

Re: django

2013-07-30 Thread Charly Román
2013/7/30 Ajaykumar : > When i doing my first application named books in django,got an error named > TEMPLATEDOESNOTEXIT, and an exception value > 'admin_doc/missing_docutils.html'.Please inform me how can i solve this > error. > Add 'django.contrib.admindocs' to the

Fwd:

2013-07-30 Thread Robin Lery
-- Forwarded message -- From: Robin Lery Date: Tue, Jul 30, 2013 at 9:22 PM Subject: To: django-users@googlegroups.com Hello, I am stuck at a point where i should be able to type in a search query on the page and it django should get back a list of matching

Re: [GD 40883] Re: Haystack

2013-07-30 Thread Sandeep kaur
On Tue, Jul 30, 2013 at 8:24 PM, Kamal Kaur wrote: > > I have created the template for haystack search and can open it, enter > any query. But there is no connectivity with database yet and its not > giving results. What I have uderstood is that, in haystack, indexes >

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Javier Guerra Giraldez
On Tue, Jul 30, 2013 at 10:48 AM, Jared Nielsen wrote: > I started setting up Apache with mod_wsgi, but ran into innumerable config > errors. After some Googling about, I found a number of suggestions to use > lighttpd instead. Installed that and more troubleshooting. And

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Tom Evans
On Tue, Jul 30, 2013 at 4:48 PM, Jared Nielsen wrote: > I'm trying to learn Django but finding myself lost in troubleshooting hell. > I can't find consistent information on the best approach for a beginner to > get set up. > > I started setting up Apache with mod_wsgi,

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Karl Arunachal
If you are in windows, I guess i can help you. On Tue, Jul 30, 2013 at 9:18 PM, Jared Nielsen wrote: > I'm trying to learn Django but finding myself lost in troubleshooting > hell. I can't find consistent information on the best approach for a > beginner to get set up.

User Permissions

2013-07-30 Thread ghinfey
Hi All, I have a very simple django site. The site allows the administrator to create a model which contains 5 text items and then stores that to the sqlite database. I have also created a user login page from a tutorial on youtube. I want to be able to control which model the logged in user has

Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

2013-07-30 Thread Jared Nielsen
I'm trying to learn Django but finding myself lost in troubleshooting hell. I can't find consistent information on the best approach for a beginner to get set up. I started setting up Apache with mod_wsgi, but ran into innumerable config errors. After some Googling about, I found a number of

Re: .filter() and .exclude() don't add up

2013-07-30 Thread Daniele Procida
On Mon, Jul 29, 2013, akaariai wrote: >> I understood that part. But by "more general" I mean one that will work >> for any case, without having to know where the Nulls might be. >> >> So given queryset A, and its subset queryset B, we can place B against A >> and obtain

Re: Haystack

2013-07-30 Thread Kamal Kaur
On Tue, Jul 30, 2013 at 3:10 PM, Kamal Kaur wrote: > > What I am missing? As this command must create indexes by processing models. > And how does my search_indexes.py file actually look like? > Currently it looks like this: http://tny.cz/d842c556 I have created the

Re: Learning how to build a web site for my python games and a blog

2013-07-30 Thread Randy Baxley
I am trying to learn Django. I have a good base in Python having worked several basic MOOCs and second level classes. My major short term goal is to build a web site where I will have a blog on smoked brisket in Chicago and a place to rewrite my games built in the Rice University course

Re: What client side html layout tools are people using to speed up template development?

2013-07-30 Thread Sam Walters
Thanks this should be good enough and better than my previous practices. Yes i have had a good look at bootstrap, google fonts... I knew about kuler and was going to try that. Im hoping to get this front end stuff to take up about 40% of my development time. I used to work in larger django

Re: background image

2013-07-30 Thread Karl Arunachal
Thank you. I will try as you told me. Just one more question, how do i create different static directory for each user? On Tue, Jul 30, 2013 at 5:37 PM, Christian Erhardt < christian.erha...@mojo2k.de> wrote: > Generally speaking you could extend the users profile and add a field to > it. Then

Re: django count

2013-07-30 Thread Christian Erhardt
Hm... there is no relation to the user? So you are trying to group by name, surname and then count all individual courses? There is a high risk, that the user has a typo in his name or the courses name, than they would appear twice in the list. Is this your intention? I'd rather do it like

Re: What client side html layout tools are people using to speed up template development?

2013-07-30 Thread Christian Erhardt
I totally agree, use bootstrap, google fonts and the color-wheel. You'll have a good looking page to start with. Then extend the layout. Am Montag, 29. Juli 2013 11:35:24 UTC+2 schrieb somecallitblues: > > Use http://twitter.github.io/bootstrap/ framework for your frontend. If > you google

Re: Multiple Form Submit with Single Submit Button

2013-07-30 Thread Christian Erhardt
Can you please give a little bit more information. What is the desired result. How should the pages look? I'm not sure what you are trying to accomplish. Am Montag, 29. Juli 2013 17:33:29 UTC+2 schrieb pattinson: > > I'm currently working with django project. I had to filter the data store >

django

2013-07-30 Thread Ajaykumar
When i doing my first application named books in django,got an error named TEMPLATEDOESNOTEXIT, and an exception value 'admin_doc/missing_docutils.html'.Please inform me how can i solve this error. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: background image

2013-07-30 Thread Christian Erhardt
Generally speaking you could extend the users profile and add a field to it. Then you could store the image during registration or when a user updates his settings. On the page where you want to show the image you could check for a image in the profile and show it. I started my project with

Re: invalid reference to FROM-clause entry for table

2013-07-30 Thread hippomoe
Anssi, Thank you for the explanation and recommendation. On Tuesday, July 30, 2013 3:49:21 AM UTC-5, akaariai wrote: > > > > On Tuesday, July 30, 2013 6:40:27 AM UTC+3, hippomoe wrote: >> >> I'm using djorm-ext-pgfulltext extension to do full-text-search using >> Postgres on a title field for

Re: django workaround for multiple primary keys or sqlalchemy

2013-07-30 Thread Tom Evans
On Mon, Jul 29, 2013 at 10:04 PM, Bill Freeman wrote: > Its not clear to me whether unique_together will make there be an index, so > it might be slow. unique_together implies a multi part index - it's the only way it could be reasonably implemented. Cheers Tom -- You

Re: Django not enforcing blank=False on a model

2013-07-30 Thread Francis Devereux
On 30 Jul 2013, at 06:14, Jani Tiainen wrote: > Also, you should note that .save() doesn't imply running validation > If you want models to be automatically validated on .save() then you can use

Haystack

2013-07-30 Thread Kamal Kaur
Running the following command, output is: "All documents removed." $ ./manage.py rebuild_index Documentation says- "Simply run ./manage.py rebuild_index. You’ll get some totals of how many models were

Re: invalid reference to FROM-clause entry for table

2013-07-30 Thread akaariai
On Tuesday, July 30, 2013 6:40:27 AM UTC+3, hippomoe wrote: > > I'm using djorm-ext-pgfulltext extension to do full-text-search using > Postgres on a title field for one of my models (Bookmark). > > class Bookmark(TimeStampModel): > title = models.CharField(max_length = 100) > # other

Re: Learning how to build a web site for my python games and a blog

2013-07-30 Thread Derek
Best off to post questions here than splitting off into another forum. Sensible questions will generally get answers! On Saturday, 27 July 2013 15:57:45 UTC+2, Randy Baxley wrote: > > Is anyone working through The Django Book that would like to form a fb > page just for that or knows of a good

Re: flatpages-tinymce

2013-07-30 Thread Karl Arunachal
Thank you. On Sun, Jul 28, 2013 at 7:03 PM, Roberto López López wrote: > > Your message is quite confusing and difficult to understand, I have to > say. What are you asking for? To show tinymce within your change_form or > within the admin app? What do you mean by "flat

background image

2013-07-30 Thread Karl Arunachal
Hello, What do I do to let user upload their own images, and as use it as their profile's background. I am out of clue. Please advice me. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop