Doubt regarding JSON/SQL in Django

2013-03-30 Thread Parin Porecha
Hi, I have just started using Django. I want to create a to-do task manager application. Users would register, login and can work with their tasks. So, instead of creating a table in the database for each user, I want to create a JSON file for each user which will store all his tasks. Is there an

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Parin Porecha
, task.start_date etc. ? On Sat, Mar 30, 2013 at 7:01 PM, Shawn Milochik wrote: > Django is just Python, so yes. Just use the json module in the standard > library. > > On Mar 30, 2013 9:23 AM, "Parin Porecha" wrote: >> >> Hi, >> >> I have just started using Dj

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Parin Porecha
mind, a simple > task list is a good problem for straightforward, relational Django. > > > On Saturday, March 30, 2013 9:14:20 AM UTC-4, Parin Porecha wrote: >> >> Hi, >> >> I have just started using Django. I want to create a to-do task >> manager application. Us

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Parin Porecha
w, you can then do this: > > new_task = Task(user=request.user, description=request.POST.description, > priority=SOME_PRIORITY).save() > > To get all of the tasks for a user: > > tasks = Task.objects.filter(user=request.user) > > Regards, > -scott > > > On

Re: Doubt regarding JSON/SQL in Django

2013-03-30 Thread Parin Porecha
16:41, En/na Parin Porecha ha escrit: > >> Thanks ! >> >> Okay, so i am dropping the idea of using JSON for storage. >> >> So, if I use JSON only as a format to send data >> to client ( All the parsing will be done client side ), is it better >>

Models at one place vs. separate places

2013-05-08 Thread Parin Porecha
Hi, I am developing a to-do task manager using Django 1.5 . It will have tasks, tags, different forms of input etc. I read on stackoverflow that creating separate apps with separate and limited functionalities is a good practice. So, should I create different apps for Task backend, Tag backend, a

Is unique_together case-insensitive ?

2013-05-11 Thread Parin Porecha
Hi, This is my model - class Tag(models.Model): user = models.ForeignKey(get_user_model()) name = models.CharField(max_length = 300) color = models.CharField(max_length = 10) icon = models.CharField(max_length = 50) class Meta: unique_together = ("user", "name")

Re: Is unique_together case-insensitive ?

2013-05-11 Thread Parin Porecha
UPDATE: On changing the user, it gets saved successfully. So, the problem is with the object.name I want to save both the objects. How can I do so ? On Sat, May 11, 2013 at 12:48 PM, Parin Porecha wrote: > Hi, > > This is my model - > > class Tag(models.Model): > user =

Re: Is unique_together case-insensitive ?

2013-05-11 Thread Parin Porecha
t;_bin". > Wish it's useful to you > > > > 2013/5/11 Parin Porecha > >> UPDATE: >> >> On changing the user, it gets saved successfully. >> So, the problem is with the object.name >> >> I want to save both the objects. How can I do so ? &

Re: Is unique_together case-insensitive ?

2013-05-11 Thread Parin Porecha
efman/5.0/en/charset-column.html > this shows how to change the collation in mysql. > > > > 2013/5/11 Parin Porecha > >> Yes, I forgot to mention >> I am running Django 1.5, with database MySQL >> >> So, how can I change the COLLATE pattern through Django's mo

Pinax Django User Accounts vs. Django Registration

2013-05-13 Thread Parin Porecha
Hi, I want to implement 2-step registration in my Django application. I am using Django 1.5 and MySQL. So, I have decided to use either 'django-user-accounts' by Pinax or 'django-registration' by James Reynolds. I am confused which app to use. User Accounts takes care of all the aspects regarding

Template Inheritance doubt

2013-05-18 Thread Parin Porecha
load Thanks to mattmc who tried to help me with this in IRC. Sorry, didn't get it completely :) -- Regards, Parin Porecha say Kifflom! <http://www.epsilonprogram.com/> and look forward to 17.09.13 ! -- You received this message because you are subscribed to the Google Groups "

Re: Template Inheritance doubt

2013-05-18 Thread Parin Porecha
get it :-), but {% block sidebar %} section be blank... > > суббота, 18 мая 2013 г., 12:14:37 UTC+3 пользователь Parin Porecha написал: > >> Hi, >> >> I have just started to learn Django's template inheritance and I am stuck >> due to this problem - >> In

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Parin Porecha
parents, the child block will > overwrite the contents of the parent block. Does this make sense? > > (and I should note that I am by no means an expert in the django template > processor - this is just my understanding). > > R, > Dow > > > On May 18, 2013, at 11:12 PM

Re: [Bulk] Re: Template Inheritance doubt

2013-05-21 Thread Parin Porecha
when we were playing > around with "sharing" the overall layout with a wordpress install. (We'd > have the django server render the header and footer separately and the > wordpress server would cache the result and use the header and footer in > it's main template (wou

Change template block via AJAX

2013-06-29 Thread Parin Porecha
that would involve reloading of the page. Is this possible via an AJAX request, and then the server would load another template which will replace the 'page_content' block without page refresh ? -- Regards, Parin Porecha say Kifflom! <http://www.epsilonprogram.com/kifflom.htm> and

File Log vs. Database Log

2013-07-20 Thread Parin Porecha
x27;t need to search or modify the data anyway after reading it. Thanks in advance ! -- Regards, Parin Porecha say Kifflom! <http://www.epsilonprogram.com/kifflom.htm> and look forward to 17.09.13 ! -- You received this message because you are subscribed to the Google Groups "Django

Re: File Log vs. Database Log

2013-07-20 Thread Parin Porecha
ul 20, 2013 at 9:02 PM, Valder Gallo wrote: > Do you know django-logtailer ? > https://github.com/fireantology/django-logtailer > > If you don't need search or modify the data. > > +1 for file storage > > :D > > > On Sat, Jul 20, 2013 at 11:52 AM, Parin Porecha