Django with Apache messing up with my settings.py

2008-08-25 Thread mario
I'm having a tough problem with Apache messing-up with my settings and urls. Does anyone have any idea of what I'm doing wrong? Question: can I have different 'settings.py' for each Django app running in Apache? As far as I could understand Django docs it should be possible, but... Here's what's

Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario
Malcom, Thank you very much. It solved my problem! On Aug 26, 9:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > [...] > > > > > And here's how I defined the apps in Apache2 (

Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario
gt; wrote: > > > > > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > > [...] > > > > And here's how I defined the apps in Apache2 (running with lastest > > > Django SVN). > > > > > > >     SetHandle

Database Security

2008-09-13 Thread Mario
Hello, I would like to move off the existing database server off Django. Currently, my settings.py file include the following configuration: DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'golf_prod'

Re: Database Security

2008-09-13 Thread Mario
ache httpd.conf file as well? Thank you again. _Mario On Sep 13, 12:46 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Ross wrote: > > [some stuff you can now find after the question] > > > > > On Sep 13, 9:37 am, Mario <[EMAIL PROTECTED]> wrote: >

Re: Database Security

2008-09-14 Thread Mario
All, Thank you very much for all the insightfull techniques. I will test the proposed functionalities in a lab environment prior to deployment. V/r, -Mario On Sep 13, 5:32 pm, Sander Steffann <[EMAIL PROTECTED]> wrote: > Hi Mario, > > > DATABASE_HOST =&qu

InlineModelAdmin - Tagging

2008-11-14 Thread Mario
Hello, I would like to incorporate an InlineModelAdmin to an existing model with the django.tagging. How would I implement this functionality to an existing model? # models.py from django.db import models from tagging.fields import TagField from tagging.models import Tag class Post(models.Mod

Re: issue with django tagging

2008-12-09 Thread Mario
Try typing the following: python manage.py shell from the python shell, type: import tagging tagging.VERSION Regards On Dec 9, 8:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > I got it from trunk,and the version is 0.3. After I installed > tagging , I cannot import it. The erro

Re: Calendar

2008-12-31 Thread Mario
Karen, Can you provide me an example of the widget implementation? _Mario On Dec 30, 9:30 am, "Karen Tracey" wrote: > On Tue, Dec 30, 2008 at 7:51 AM, Praveen > wrote: > > > > > Hi All, > > I want to use calendar in my html template as the default admin > > interface uses. > > http://docs.dja

Re: mod_python problem

2009-08-20 Thread Mario
Bryan, Can you post your project url? Also try changing from to _Mario On Aug 20, 12:33 pm, Bryan Fordham wrote: > I'm sure this is something simple, but I'm a bit stumped. It's been a > while since i've don't this, and obviously I'm missing something > > I have my django app installed on se

Re: mod_python problem

2009-08-20 Thread Mario
t runs from the root. It was set that way on the development > server, too, with no problem > > > > On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote: > > > Bryan, > > > Can you post your project url? Also try changing from > > to > > > _Mario > >

Re: mod_python problem

2009-08-20 Thread Mario
Don't forget the comma after the absolute path. For example, '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', < comma _Mario On Aug 20, 4:41 pm, Bryan Fordham wrote: > > The default template is not loading correctly. Check and verify your > > settings.py and make sure it

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
Jarvis, If you are looking for a 'Stamp of Approval', you may be looking at the wrong place. Django is an "Open Source" web framework which hasn't been formally certified and accredited by the US Government. You speak of HIPAA which translates to FISMA requirements. I assume your web application

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
Peter, I don't disagree with you. However, based on Glen's security report ( I suspect they are using Nessus/Retina to produce the scan result i.e. CVE - Common vulnerabilities and exposure ),his question was: Does anyone know where to find such "stamp of approval" or "denial" from HIPAA's point

Re: OWNING code

2009-03-23 Thread Mario
mn, Django Web Framework is an open source; however, the customized code developed for Django strictly belongs to the developer/organization. Let's put this in perspective. For example, a Java Programmers relies on Java to run their code. Although Java was developed by Sun Microsystems, the progr

Re: Templatetags and admin issues

2009-09-29 Thread Mario
CalDan, I had the same exact problem yesterday. I googled it and found some useful links, but no definitive answer. Anyway, since the error was in the dev environment, I decided to wipe-out django and re-install it from the trunk. It actually solved my problem. Before deleting django make sure

Re: Help to choose web-template

2009-10-16 Thread Mario
If you are going to learn something new might as well learn something useful and beneficial. I suggest trying out Blueprint CSS Framework. It works great with Django templates. The URL is http://www.blueprintcss.org/ Or try these following sites: http://www.456bereastreet.com/lab/developing_wit

Pagination - django.views.generic.list_detail.object_detail

2009-11-02 Thread Mario
Hello, Which Pagination tag do you all recommend for handling django.views.generic.list_detail.object_detail? I have an existing article which requires pagination. I don't want the user to keep scrolling down the web page. _Mario --~--~-~--~~~---~--~~ You received

Re: Apache2 installation

2009-11-13 Thread Mario
You need revisit your project urls.py and also verify your project settings.py. Does your urls.py somewhat resemble the following: from django.conf.urls.defaults import * from django.contrib import admin from django_apps.blog.models import Post urlpatterns = patterns('', (r'^contact/', inclu

Re: How to list all parents and their children if any?

2009-11-29 Thread Mario
Hi, You mentioned that you could have used a m2m between Connector and Cable, but it sounded that you opted out. I could be wrong, but to get the desired report to display, I think you may need to revisit your models.py and use the "_set" used in m2m relationships. _mario On Nov 28, 11:50 pm,

Twitter API

2009-12-27 Thread Mario
Good afternoon, Is there a Twitter API that would allow me to update a Twitt via Django? If so would you be kind enough to send me the link? _Mario -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Twitter API

2009-12-27 Thread Mario
phe Pettus wrote: > On Dec 27, 2009, at 12:24 PM, Mario wrote: > > > Is there a Twitter API that would allow me to update a Twitt via > > Django?  If so would you be kind enough to send me the link? > > Not meaning to be too terribly sarcastic, but have you tried using   > Goo

Re: Twitter API

2009-12-27 Thread Mario
, Christophe Pettus wrote: > On Dec 27, 2009, at 12:31 PM, Mario wrote: > > > Thank you for replying. Yes, I reviewed python twitter API, but the > > model or the app is designed to pull down the "twitt". I would like to > > upload a twitt via Django in lieu o

Re: HIPAA experience

2010-06-11 Thread Mario
Hello, >From what I have read it looks like you want to provide your clients the assurance that the information being presented is not compromised in addition to meeting the HIPAA and HITECH requirements. This is not entirely a Django/Python implementation, but falls in line with the Database back

Re: How to merge TinyMCE to django flatpage

2010-06-19 Thread Mario
Steven, You need to read the 1st paragraph on page 25 closely. Also make sure the java scripts are loaded correctly. I personally use Firefox Firebug to debug the failing scripts. Finally using the Django Dev Server will not display the TinyMCE widgets. You need to make changes on your Apache Co

Calendar Templatetag

2010-07-10 Thread Mario
Hello, I am currently using the Calendar Templatetag found at http://djangosnippets.org/snippets/129/ and it suites my current needs. However, I would like to extend the functionality of the templatetag by rendering previous and next months i.e., June 2010, July 2010, August 2010, September 2010

Re: New tutorial added to Django by Example

2010-08-03 Thread Mario
Thank you for sharing the application. I would like to make the start day of the week Sunday instead of Monday. _Mario On Aug 3, 12:14 am, Rainy wrote: > I've added a new tutorial: Calendar App to > my Django by Example site.  As always, feedback is appreciated. > > What would be a good tutorial

Re: viewsite button takes me to example.com

2010-01-29 Thread Mario
You need to login to your admin and scroll down the Sites and change the example.com to your domain name or IP address. Cheers. On Jan 29, 10:50 am, harryos wrote: > hi > I was trying out the weblog app in bennet's book.I created some > categories and entries and can list them properly > usin

Re: I can't select day with calendar widget

2010-10-09 Thread Mario
Rene, When you say "the problem happens when I select 2010-10-10 in the widget , then 2010-10-09 is set in the field." What do you exactly mean? It looks like you need to revisit your app/models.py. V/r, Mario On Oct 7, 6:25 pm, "renevie...@gmail.com" wrote: > Hello.

unicode options in models...

2011-02-16 Thread Mario
Hi, total noob here. This is probably me being extremelly stupid at some point, and I haven't found an answer to this question however i phrased it even tho it's probably in the documentation somewhere but I just don't understand it So I'm writing a django site in spanish and the spanish non-asci

Setting request.GET when sending an HttpResponse

2008-02-13 Thread mario
It seems to me that I'm asking something verys obvious. However I couln't find and example anywhere for solving my problem. Here it goes... I receive a request via GET and, based on request.GET, I generare a result and send a HttpResponse. However, when sending the response, I'd like to set addit

Re: Setting request.GET when sending an HttpResponse

2008-02-14 Thread mario
Etienne, thanks for answering, > I believe you got this wrong a little. A HttpResponse object doesn't modify > the query string. That should be done in your form markup, > or even in a javascript file, in case you want to do it programmatically. Yes, I understand that a HttpResponse cannot modif

Re: Setting request.GET when sending an HttpResponse

2008-02-15 Thread mario
As Malcom said, I wish to avoid as much as possible session data. In fact, the user wouldn't be able to bookmark the query that (I think) might become very userful as he familiarize with the application. Thanks anyway for you help. --~--~-~--~~~---~--~~ You receiv

Re: Setting request.GET when sending an HttpResponse

2008-02-15 Thread mario
Malcom, thank for you help. That was the hint I was looking for. I got the idea and I'll now keep working from it. On 14 Feb, 10:59, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-02-14 at 01:28 -0800, mario wrote: > > Etienne, thanks for answering, > >

Re: Django HTML Editor

2008-06-14 Thread mario
/using_tinymce_in_djangos_admin.html. It has excellent examples how to integate TinyMCE with Django. I personally use it in my web site. Good luck! Sincerely yours, Mario On Jun 14, 2:06 am, Ngu Soon Hui <[EMAIL PROTECTED]> wrote: > I want a free HTML editor that is compatible with Django template'

django-filebrowser

2008-06-28 Thread Mario
Hi, all! I'll try to install file browser application (http://code.google.com/p/ django-filebrowser/) in my project and had some problems: - Could not import filebrowser.views. Error was: cannot import name ugettext - Could not import filebrowser.views. Error was: No module named safestring and s

django+mod_python, caching or something else?

2008-07-02 Thread Mario
Hi, all! I have a some little project that consists news list, several text blocks and else All worked... But after adding, for example news, it not publish on main page while apache restart(reload). This problem haven't regularity. model.py: class News(models.Model): title = models.CharField

Re: django+mod_python, caching or something else?

2008-07-02 Thread Mario
ed, Jul 2, 2008 at 7:09 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > Client-side caching. Use the `never_cache` decorator > > No, that's not it at all. > > > On Jul 2, 3:43 pm, Mario <[EMAIL PROTECTED]> wrote: > >> I look at sql log - django didn

Re: django+mod_python, caching or something else?

2008-07-03 Thread Mario
Thanks to all, I wrote custom tags. It's solve my problem! --~--~-~--~~~---~--~~ 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 t

Calendar of Events

2008-07-07 Thread Mario
Hello, I’m a NOOB and I was wondering if there are any calendars of event model that will allow a user to click on a specific date with the associated listing of events. Any suggestions or recommendations are appreciated. Thank you. Goober --~--~-~--~~~---~--~~ Y

Re: Calendar of Events

2008-07-07 Thread Mario
ar/ > > On Jul 7, 2:13 pm, Mario <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I’m a NOOB and I was wondering if there are any calendars of event > > model that will allow a user to click on a specific date with the > > associated listing of events

Re: Calendar of Events

2008-07-08 Thread Mario
I looked at the 3captus.com/download/django_calendar, but found it to be somewhat cumbersome in terms of functionality. I don't want anonymous users to create or delete calendar of events. Any more suggestions or ideas? -Mario On Jul 7, 11:29 pm, bedros <[EMAIL PROTECTED]> wro

Re: Django + tiny_mce

2008-07-08 Thread Mario
list_filter = ['pub_date'] save_as = True js = ['tiny_mce/tiny_mce.js', 'js/textareas.js'] Save the model. Stop and restart you apache server. Login the Admin and verify the changes. -Mario On Jul 6, 11:56 am, [EMAIL PROTECTED] wrote: > Hello,

Re: Django + tiny_mce

2008-07-08 Thread Mario
cated in the /usr/lib/python2.5/site- packages/django/contrib/flatpages directory. Make sure make a copy of the model prior to making any changes. Check out Bill DeOra write about Tiny_MCE. It was written in 2006. The URL is http://dehora.net/journal/2006/05/ Gracias, -Mario On Jul 8, 8:01 pm

Re: Template Language Design

2008-07-13 Thread mario
example of how it can be used a django app, see: http://evoque.gizmojo.org/ext/django/ mario On Jul 13, 9:01 am, Chris <[EMAIL PROTECTED]> wrote: > Just out of curiosity, is there a reason why the templating constructs > can't evaluate arbitrary expressions? It seems terribly awk

newforms: how to report multiple cross-field validation errors?

2007-05-23 Thread mario
I'm using newforms library and it is really a great improvement over "oldforms". However, how would I report more than a single error when doing cross- field validation in the form clean() method? I mean, since the errors are reported by raising an exception, on the first raised validation error

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario
other fields contents, that doesn't seem a reasonable solution. Is there any better djangonic way to cross-validate fields? Thanks for any help in advance. Mario. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

How to create a Generic Show View ?

2008-08-26 Thread Mario Hozano
needs to adjust the model class to work fine. Does Django offer another way to present the model attributes in a Show view? Is it possible to use a ModelForm class to show the attribute values in html labels? Thanks. Mario Hozano --~--~-~--~~~---~--~~ You received thi

How to show a model count value in a html page?

2008-08-26 Thread Mario Hozano
. Statistics Users({{User.objects.count}}) ... Regards. Mario Hozano. --~--~-~--~~~---~--~~ 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@googlegro

Re: How to show a model count value in a html page?

2008-08-26 Thread Mario Hozano
Good, Rajesh. I will do it. Thanks. Mario Hozano On Tue, Aug 26, 2008 at 5:38 PM, Rajesh Dhawan <[EMAIL PROTECTED]>wrote: > > Hi Mario, > > > I am new in Django. I am implementing a web application using the > > django template support. In this way, i am using a si

Re: How to create a Generic Show View ?

2008-08-27 Thread Mario Hozano
extra_context={'model_entity':'user'})) Should I use the 'django.views.generic.create_update.create_object' view? I want only to use the urls.py without write in views.py to instantiate the form. Is it possible? Thanks. Mario Hozano. On Wed, Aug 27, 2008 at 3:34 A

simple order taking model

2009-03-08 Thread Mario Zorz
special_discount = models.DecimalField(max_digits=6, decimal_places=2) pub_date = models.DateTimeField('date published') foto = models.CharField(max_length=200, blank=True) def __unicode__(self): return self.description class Admin: list_display =

creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-09 Thread Mario Zorz
0, core=True) receta = models.TextField(blank=True) precio = models.DecimalField(max_digits=6, decimal_places=2, core=True) dcto_especial = models.DecimalField(max_digits=6, decimal_places=2) pub_date = models.DateTimeField('date published') foto = models.CharField(ma

Re: creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-09 Thread Mario Zorz
the view is, pass on to the template a collection of a new kind of object that will have, for each instance, fields "description" (from model C), "choice_id" and "votes" (from model Choice). The question is: what

Re: creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-10 Thread Mario Zorz
tml', {'mydict': mydict}) I think this is something rather usual (have fields from 2 different models and show them together, just a JOIN...). Thanks Regards Mario From: Mario Zorz To: django-users@googlegroups.com Sent: Tuesday, March 10, 20

Re: django-registration - stuck at Required templates topic

2011-08-04 Thread Mario Gudelj
Hey Bob, You can download some basic templates for this page http://devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/ Cheers, On 5 August 2011 12:42, bob gailer wrote: > I followed the installation & configuration of django-registration up > to the start of th

Re: Django Development environment

2011-08-22 Thread Mario Gudelj
Mac, sqlite, Eclipse with Pydev or AquaMacs, apache On 23 August 2011 13:06, Jani Tiainen wrote: > Ubuntu or windows, eclipse with pydev, apache, nginx, virtualenv and > Oracle. > > Stephen Jackson kirjoitti 23.8.2011 kello > 1.07: > > I am new to the world of Django. I would like to hear from

Error: cannot import name settings

2011-08-24 Thread Mario Gudelj
els.py. I'm really not sure what do here. I have searched internet for the past hour and can't find an answer. My Django version is: >>> print django.VERSION (1, 3, 0, 'final', 0) Thanks everyone. Mario -- You received this message because you are subscribed to

Re: Error: cannot import name settings

2011-08-24 Thread Mario Gudelj
that the error message was a bit nicer :( Cheers, On 25 August 2011 11:26, Kejun He wrote: > Search "settings" in your project, and see the settings how to be imported. > > > > On Wed, Aug 24, 2011 at 4:45 PM, Reinout van Rees wrote: > >> On 24-08-11 09:54, Mar

Re: Using gedit for django development

2011-09-12 Thread Mario Gudelj
This is awesome dude. I was looking for something like this since I moved to Ubuntu. On 13 September 2011 10:12, Micah Carrick wrote: > I've written a blog post on using gedit, the default text editor in GNOME, > as a Django IDE. If you're a Linux user and you've never considered using > gedit f

Re: Automaticall list all fields of generic model in template

2011-10-16 Thread Mario Gudelj
I think you need this https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ On 16 October 2011 18:24, bovender wrote: > Hi all, > > new to Django and loving it. > > Is there a way to automatically generate HTML output for the fields of a > model instance? > > I'm looking for something s

Date and time picker in Django

2011-10-20 Thread Mario Gudelj
x27;t figure this one out. If anyone know of another jQuery date/time picker I could use for the format I need that would be most appreciated! Thanks djangoers! Mario -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: Date and time picker in Django

2011-10-20 Thread Mario Gudelj
Thanks Kurtis. What do you use as a time picker? On 21/10/2011 6:39 AM, "Kurtis" wrote: > I just use Jquery-UI DatePicker http://jqueryui.com/demos/datepicker/ > > On Oct 20, 7:46 am, Mario Gudelj wrote: > > Hi guys, > > > > I'm looking for a date/

Re: Date and time picker in Django

2011-10-20 Thread Mario Gudelj
m/examples/timepicker/ It seems to work w/ the > Jquery-ui Datepicker. > > On Thu, Oct 20, 2011 at 4:05 PM, Mario Gudelj wrote: > >> Thanks Kurtis. What do you use as a time picker? >> >> On 21/10/2011 6:39 AM, "Kurtis" wrote: >> >>> I just use Jqu

Re: bar charts

2011-11-08 Thread Mario Gudelj
Hey, I implemented a line chart and this is my code: View: def render_chart(request): months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] month_values = [0,0,0,0,0,0,0,0,0,0,0,0] list_of_items = MyModel.objects.all() for item in list_of_items:

controlling user access

2011-11-17 Thread Mario Gudelj
the articles that belong to those other businesses. Any help or suggestions will be highly appreciated. Thanks guys! Mario -- 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@googlegrou

Re: controlling user access

2011-11-17 Thread Mario Gudelj
es for that business. This can be done in > one or different views. > > Bye > > On Nov 17, 2011, at 9:13, Mario Gudelj wrote: > > Hi Djangoers, > > I have a problem on my hands I'm not sure how to approach and would > appreciate your guidance. > > I'm buil

IntegrityError: bookings_business.slug may not be NULL on .create()

2011-11-17 Thread Mario Gudelj
Hi guys, I have this issue I can not work out for the life of me. I would really appreciate it if someone could help. This is my model: class Business(models.Model): ... slug = models.SlugField("Slug", max_length=255, unique=True, blank=False) I have the following function in the models

Re: Django for a large social networking or photo sharing site?

2011-11-23 Thread Mario Gudelj
I'd suggest you to learn 2.x, since django doesn't run on 3. I would just get into it. Make sure you learn pure basics of programming and Python and then just start with that first django Polls tutorial and make sure you understand every line of code as you go along. Finish few tuts, first 7 chapte

Re: Help with many-to-many field update

2011-11-24 Thread Mario Gudelj
Hey Leslie, Try add() method like in this answer on SO http://stackoverflow.com/questions/1226290/django-manytomany-relation-add-error Cheers, On 25 November 2011 00:43, Nichehosters wrote: > Hi, > I am relatively new to Django, and am trying to update a many-to-many > related table using a Mo

Re: better datepicker

2011-11-28 Thread Mario Gudelj
Hey, I use http://docs.jquery.com/UI/Datepicker on the front end. It's as simple as placing $("#datepicker").datepicker(); inside the page where you want to convert the text fields to date picker fields. I'll you have to do is change the ID inside $("#datepicker").datepicker(); to an ID of your f

Re: urls.py?

2011-12-08 Thread Mario Gudelj
I think you have to add "from views import *" to urls.py and make sure you have a method called contact in your view. Cheers, On 09/12/2011 12:10 PM, "Jim Byrnes" wrote: > I am trying to learning django by working my way through The Definitive > Guide to django (vers 1.1). I am running django 1

Re: working with forms , problem !!!

2011-12-11 Thread Mario Gudelj
Try using this: d = {'form':form} d.update(csrf(request)) return render_to_response('contact.html',d) Tip: don't use !!! or ??? in your emails when asking for help :) On 12 December 2011 08:30, Hassan wrote: > Dear All , > am trying to make a form and i used an example from the book but its

Re: Show deactived radio button on a form

2011-12-30 Thread Mario Gudelj
I think you may need a HTML or JS solution here. Check out this SO post http://stackoverflow.com/questions/1953017/why-cant-radio-buttons-be-readonly Cheers, On 31 December 2011 05:29, CrabbyPete wrote: > I have the following form: > > DEAL_CHOICES = [ >('Standard','Standard'),

Re: What does login() and logout() actually do?

2011-12-30 Thread Mario Gudelj
Hey, All that code is in django.contrib.auth. The login() function is is in views.py in that directory. Cheers, On 31 December 2011 11:34, David Zheng wrote: > Hi, all. > > In Django Document - User authentication in Django, it talks about how > to log a user in and out. But I really what to

not sure how to unpack a list within a tuple within another list inside the template

2012-01-11 Thread Mario Gudelj
Hi Djangoers, I have a default dict variable final_d = defaultdict(list) that looks like this: [(order1, [customer2, customer1]), (order2, [customer3, customer5, customer6]) ] I've tried everything possible inside the template and I can't unpack this thing. I'm passing final_d to the template in

Re: Help me with django Form

2012-01-11 Thread Mario Gudelj
Can you provide your register model? Is it possible that you've extended the user model and that your username, password etc is getting stored inside auth_user table? On 12 January 2012 12:49, coded kid wrote: > Hi guys, I’ve been trying to signup using the django form I created. > Whenever I

Re: SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-04-23 Thread Mario Garcia
Hi Zeal Django I dont know about a SCORM module for django. As I remember there is a SCORM module for Plone , I dont know about a LMS developed in django. Mario Garcia On Apr 22, 2:05 am, Zeal wrote: > Hi, All, > > Does anyone has the experience on SCORM(Sharable Content Object &g

Re: Custom ModelAdmin form for distinct logged users

2011-01-28 Thread Moya, Mario
rm, but if the user is another one, show only some > > fields and not all model fields. For this, I coud use > > ModelAdmin.fields (or exclude, or readonly_fields), but i don't know > > how to make it conditional to the user. > > > > Regards, Mario. > > -- >

Re: not sure how to unpack a list within a tuple within another list inside the template

2012-01-12 Thread Mario Gudelj
Thanks for your help guys. I ended up creating a class for for orders and customers class and then I passed those objects to the tepmlate inside a dict. That worked. Cheers, On 12 January 2012 21:55, Masklinn wrote: > On 2012-01-12, at 11:47 , Daniel Roseman wrote: > > However I'm confused by y

Re: Does anyone know any blogs that write about how to quickly install and deploy a django application on Amazon EC2?

2012-01-12 Thread Mario Gudelj
http://www.synstorm.co.uk/2012/01/08/setting-up-django-on-a-free-amazon-ec2-instance/?utm_source=Python+Weekly+Newsletter&utm_campaign=337820f7f5-Python_Weekly_Issue_17_January_12_2012&utm_medium=email On 13 January 2012 10:44, Stuart Laughlin wrote: > I am partial to debian / ubuntu, so I use t

Re: [pinax-users] Learn DJango first, then learn Pinax; or just learn Pinax straight-off?

2012-01-16 Thread Mario Gudelj
I'd recommend Django first. Do the polls tutorial, first 7 chapters of the book, some Django By Example tuts and then get into Pinax. https://docs.djangoproject.com/en/dev/intro/tutorial01/ http://www.djangobook.com/en/2.0/ http://lightbird.net/dbe/ Cheers, On 17 January 2012 05:12, Alec Taylo

Re: what is the best IDE to use for Python / Django

2012-01-23 Thread Mario Gudelj
I've used gedit, sublime text 2, emacs, vi, but the best Django IDE by far is PyCharm. I'm seriously amazed at how awesome it is. It's worth every cent. On 23 January 2012 22:20, Sandro Dutra wrote: > The best IDE is that you fell comfortable using it. > > 2012/1/21 goosfancito : > > El 21/01/12

Re: User-specific sites

2012-01-28 Thread Mario Gudelj
It's all in queries. You assign the user to all your tables as a foreign key and make sure that all your quiries have user in them as a filter. You can also extend the user and assign a slug to it so that you have unique urls for all users. You can generate a slug from the username upon user creati

Re: ModelForm

2012-01-29 Thread Mario Gudelj
You can exclude certain fields from the form using exclude['fieldname'] in that FormName class On 28/01/2012 6:08 AM, "hack" wrote: > Hello, > I am new to Python and have a Java background. > > I have created a bunch of models, and forms using ModelForm: > class FormName(ModelForm): >cla

Re: Starting a new Python blog

2012-01-29 Thread Mario Gudelj
Same :) On 29 January 2012 19:11, Anler Hernandez Peral wrote: > you have one subscriber over here and waiting to see more posts ;) > > -- > anler > > > > On Sat, Jan 28, 2012 at 9:35 PM, Kevin wrote: > >> Hello Everyone, >> >> For sometime now I have been itching to create a Python blog, and

Re: Displaying template location in html

2012-01-29 Thread Mario Gudelj
The only way to achieve this would be to pass the template path, inside the view, to the template and render it within the template. Like: d = {'profile':profile:'template_path':"console/account-profile.html"} return render_to_response('console/account-profile.html', d) -m On 29 January

Re: help with tutorial 01

2012-01-29 Thread Mario Gudelj
That should work. You must have some unusual setting in settings.py. Can you post time zone references from that file? On 20 January 2012 09:03, Cyd wrote: > In the tutorial here: > > https://docs.djangoproject.com/en/1.3/intro/tutorial01/ > > I get no errors up until the p.save() at the end

Re: imagefiled don't Work

2012-01-29 Thread Mario Gudelj
perhaps something from this post can help - http://mariogudelj.tumblr.com/post/16717808643/custom-upload-to-path-in-django On 22 January 2012 21:41, Tony Kyriakides wrote: > (in the terminal) > python manage.py syncdb > > On Jan 21, 8:57 am, cha wrote: > > Hello I reading this tutorialhttps://

Re: Building authentication backend

2012-02-01 Thread Mario Gudelj
I'm new to Django too, but I suspect you'd do something like this: class AdditinoalUserInfo(models.Model): user = models.ForeignKey(User, unique=True) extra_password = models.CharField("Password", blank=True) That will create a new table for you and a column for new password. You then nee

Re: Entering Text into a Database

2012-02-02 Thread Mario Gudelj
Hey dude, Let's say you have some model with fields defined. It's called Business. Looks something like this: class Business(models.Model): id = models.AutoField(primary_key=True) name = models.CharField("Business Name", max_length=NAME, blank=False) You create a ModelForm like this: cl

Unit test example for web froms

2012-02-11 Thread Mario Gudelj
Hi guys, I was wandering if anyone has a good example of a unit test where they have a view which processes a web form. I'm not sure how you'd test something like that. Thanks, mario -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Why does django default to Chicago time?

2012-02-15 Thread Mario Gudelj
I believe that people who created Django are from there. :) On 16 February 2012 14:46, Roy Smith wrote: > In the default settings.py file, the timezone is set to: > > TIME_ZONE = 'America/Chicago' > > Why? Wouldn't None (to match the server's time zone) be a more sane > default? Even setting i

Re: dropdown select box in django

2012-02-20 Thread Mario Gudelj
Hey there, Try this: In your forms.py create a field such as this message = forms.ChoiceField(label='Event Type', choices=EVENT_TYPE_CHOICES) That will create a dropdown. Also, I think that the first thing in the tuple is a value and shouldn't have a space, so change: EVENT_TYPE_CHOICES = (('

Re: dropdown select box in django

2012-02-21 Thread Mario Gudelj
not sure what you mean there, but take a look at this https://docs.djangoproject.com/en/dev/ref/forms/fields/#modelchoicefield On 21 February 2012 23:36, larry.mart...@gmail.com wrote: > On Feb 20, 9:52 pm, Mario Gudelj wrote: > > Hey there, > > > > Try this: > > &g

Re: Question on unknown error

2012-02-26 Thread Mario Gudelj
In print 'time' what's time? Should you not have print exp_datetime? On 27 February 2012 01:27, Stanwin Siow wrote: > Hello, > > I have the following method: > > def subscribe_keyword(userid,subDay =7,KEYWORD_SET=frozenset()): > try: > ... > > sub_datetime = datetime.datetime.now() >

User actions logging app

2012-02-28 Thread Mario Gudelj
Hi list, I was wandering if someone could recomend an easy django app for logging user actions performed on models. I'd like to log changes logged in users make around the app. Cheers, m -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: User actions logging app

2012-02-29 Thread Mario Gudelj
Wow. Legend! That's so much Annsi. On 29 February 2012 18:00, Babatunde Akinyanmi wrote: > Yes, they definitely will. > > On 2/28/12, akaariai wrote: > > On Feb 28, 11:35 pm, Mario Gudelj wrote: > >> Hi list, > >> > >> I was wandering if someon

Unicode lists and form submissions

2012-02-29 Thread Mario Gudelj
Hi djangoers, I've ran into an issue I'm not sure how to handle. I have a form with 7 checkboxes representing 7 days of the week. I want to collect the submitted days and use them in rrule to generate some dates. The form field looks like this: weekly_interval = forms.MultipleChoiceField(label=

Re: Unicode lists and form submissions

2012-02-29 Thread Mario Gudelj
Found an answer here http://stackoverflow.com/questions/9210117/attributeerror-str-object-has-no-attribute-n-when-using-dateutil Thanks guys. On 1 March 2012 00:30, Mario Gudelj wrote: > Hi djangoers, > > I've ran into an issue I'm not sure how to handle. > > I have

  1   2   3   4   5   >