Re: Custum save on Foreignkey in Admin

2013-02-05 Thread Avnesh Shakya
plz tell me why this error is coming here... after setting urls.py. plz
help me..
ViewDoesNotExist at /admin/

Could not import foo.views.index. View does not exist in module foo.views.

Request Method:GETRequest URL:http://127.0.0.1:8000/admin/Django Version:
1.4.3Exception Type:ViewDoesNotExistException Value:

Could not import foo.views.index. View does not exist in module foo.views.

Exception Location:C:\Python27\lib\site-packages\django\core\urlresolvers.py
in get_callable, line 101Python Executable:C:\Python27\python.exePython
Version:2.7.3Python Path:

['C:\\mysite',
 'C:\\Windows\\system32\\python27.zip',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win',
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages']

Server time:Tue, 5 Feb 2013 13:08:47 +0530

On Tue, Feb 5, 2013 at 12:47 PM, Rob van Dam | Camping het Wieskamp <
r...@wieskamp.nl> wrote:

> Hi Pankaj,
>
> I tested the code at it works perfectly. Thanks again!
>
> I have one question out of curiosity (I don't need this for this project).
> When a ticketitem is deleted, def save_formset is called, but no instance
> is made, hence an error message "instance referenced before assignment"
>
> What is the correct way to deal with this?
>
> I don't need this for my current project, so if you don't answer it, it is
> no problem at all.
>
> Regards,
>
> Rob
>
> On 04-02-13 18:50, Pankaj Singh wrote:
>
>> Yes, save_formset() has only those instances whose fields were changed.
>>
>> Sincerely,
>> Pankaj Singh
>> http://about.me/psjinx
>>
>>
>> On Mon, Feb 4, 2013 at 10:46 PM, Rob van Dam  wrote:
>>
>>> Hi Pankaj,
>>>
>>> Thank you so much You have saved my day :-) I will be able to test it
>>> tomorrow, and I will let you know if it worked.
>>>
>>> I tested all my previous attempts saving an existing item in Admin. But
>>> when
>>> nothing is changed in the admin form, def save_formset is not
>>> called..
>>>
>>> Regards,
>>>
>>> Rob
>>>
>>>
>>>
>>> On 04-02-13 17:26, Pankaj Singh wrote:
>>>
 Hey Rob,

 I tested following code and it works.

  models.py

 from django.db import models

 # Create your models here.

 class Ticket(models.Model):
   ticketnumber = models.IntegerField()
   total_amount = models.DecimalField(max_**digits=7,
 decimal_places=2,
 blank=True)

   def update_total_amount(self):
   total = 0
   for ti in self.ticketitem_set.all():
   total += ti.price * ti.amount
   self.total_amount = total
   self.save()

 class TicketItem(models.Model):
   name = models.CharField(max_length=**30)
   ticket = models.ForeignKey(Ticket)
   price = models.DecimalField(max_**digits=7, decimal_places=2)
   amount = models.IntegerField()


  admin.py
 from django.contrib import admin
 from tickets.models import Ticket, TicketItem


 class TicketItemInline(admin.**TabularInline):
   model = TicketItem

 class TicketAdmin(admin.ModelAdmin):
   inlines = [TicketItemInline,]

   def save_formset(self, request, form, formset, change):
   instances = formset.save(commit=False)
   for instance in instances:
   instance.save()
   formset.save_m2m()
   instance.ticket.update_total_**amount()


 admin.site.register(Ticket, TicketAdmin)


 I hope it helps.

 Sincerely,
 Pankaj Singh
 http://about.me/psjinx


 On Mon, Feb 4, 2013 at 9:01 PM, Rob van Dam | Camping het Wieskamp
  wrote:

> Hi Pankaj,
>
> I have tried many things today, but unfortunately I cannot get anything
> working :-( Can you give me a bit more information on this issue? Any
> hint
> would be highly appreciated!
>
> I cannot get anything saved in the database. For testing I made this
> setup
> (added ordernumber to the Tickets model):
>
>
> class TicketAdmin(admin.ModelAdmin):
>   def save_formset(self, request, form, formset, change):
>   instances = formset.save(commit=False)
>   for instance in instances:
>   instance.ordernumber = 100
>   instance.save()
>   formset.save_m2m()
>
> I expected the value 100 to be saved in the databasebut nothing
> works.
>
> Rob
>
>
>
>
> On 02-02-13 21:04, Pankaj Singh wrote:
>
>>
>>
>> http://stackoverflow.com/**questions/8294889/override-**
>> save-on-django-**inlinemodeladmin
>>
>> Sincerely,
>> Pankaj Singh
>> http://about.me/psjinx
>>
>>
>> On Sun, Feb 3, 2013 at 1:34 AM, Pankaj Singh 
>> wrote:
>>
>>>

plz help me for error in python for django.....

2013-02-05 Thread Avnesh Shakya

Here i want to explore database API but it's generating error..
C:\mysite>python manage.py shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from polls.models import Poll,Choice
>>> Poll.objects.all()
[]
>>> import django
>>> from django.utils import timezone
>>> p= Poll(question="what's new?",pub_date= timezone.now())
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python27\lib\site-packages\django\db\models\base.py", line 367, 
in __init__
raise TypeError("'%s' is an invalid keyword argument for this function" 
% kwargs.keys()[0])
TypeError: 'pub_date' is an invalid keyword argument for this function
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
thanks. i m adding my polls file...

On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov  wrote:

> 1) please provide your model Poll
> 2) are you run syncdb ?
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> 2013/2/6 Avnesh Shakya :
> >
> > Here i want to explore database API but it's generating error..
> > C:\mysite>python manage.py shell
> > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
> (Intel)] on
> > win32
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> >>>> from polls.models import Poll,Choice
> >>>> Poll.objects.all()
> > []
> >>>> import django
> >>>> from django.utils import timezone
> >>>> p= Poll(question="what's new?",pub_date= timezone.now())
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "C:\Python27\lib\site-packages\django\db\models\base.py", line
> 367,
> > in __init__
> > raise TypeError("'%s' is an invalid keyword argument for this
> function"
> > % kwargs.keys()[0])
> > TypeError: 'pub_date' is an invalid keyword argument for this function
> >>>>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




polls.rar
Description: application/rar


Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
thanks.. i have added my polls.models file

On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov  wrote:

> 1) please provide your model Poll
> 2) are you run syncdb ?
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> 2013/2/6 Avnesh Shakya :
> >
> > Here i want to explore database API but it's generating error..
> > C:\mysite>python manage.py shell
> > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
> (Intel)] on
> > win32
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> >>>> from polls.models import Poll,Choice
> >>>> Poll.objects.all()
> > []
> >>>> import django
> >>>> from django.utils import timezone
> >>>> p= Poll(question="what's new?",pub_date= timezone.now())
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "C:\Python27\lib\site-packages\django\db\models\base.py", line
> 367,
> > in __init__
> > raise TypeError("'%s' is an invalid keyword argument for this
> function"
> > % kwargs.keys()[0])
> > TypeError: 'pub_date' is an invalid keyword argument for this function
> >>>>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




models.py
Description: Binary data


Re: plz help me for error in python for django.....

2013-02-06 Thread Avnesh Shakya
thanks alot... but i have set it but again it's showing new error..
like...

C:\mysite>python manage.py shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from polls.models import Poll,Choice
>>> Poll.objects.all()
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 72,
in __repr__
data = list(self[:REPR_OUTPUT_SIZE + 1])
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 87,
in __len__
self._result_cache.extend(self._iter)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 291,
in iterator
for row in compiler.results_iter():
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
line 763, in results_iter
for rows in self.execute_sql(MULTI):
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
line 818, in execute_sql
cursor.execute(sql, params)
  File "C:\Python27\lib\site-packages\django\db\backends\util.py", line 40,
in execute
return self.cursor.execute(sql, params)
  File "C:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py",
line 344, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: no such column: polls_poll.pub_date
>>>






On Wed, Feb 6, 2013 at 2:49 PM, Jani Tiainen  wrote:

> Now look your Poll model and try to find field "pub_date" there...
>
> :)
>
> 6.2.2013 11:03, Avnesh Shakya kirjoitti:
>
>> thanks.. i have added my polls.models file
>>
>> On Wed, Feb 6, 2013 at 2:20 PM, Sergiy Khohlov > <mailto:skhoh...@gmail.com>> wrote:
>>
>> 1) please provide your model Poll
>> 2) are you run syncdb ?
>> Many thanks,
>>
>> Serge
>>
>>
>> +380 636150445
>> skype: skhohlov
>>
>>
>> 2013/2/6 Avnesh Shakya > <mailto:avnesh.n...@gmail.com>**>:
>>
>>  >
>>  > Here i want to explore database API but it's generating
>> error..
>>  > C:\mysite>python manage.py shell
>>  > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
>> (Intel)] on
>>  > win32
>>  > Type "help", "copyright", "credits" or "license" for more
>> information.
>>  > (InteractiveConsole)
>>  >>>> from polls.models import Poll,Choice
>>  >>>> Poll.objects.all()
>>  > []
>>  >>>> import django
>>  >>>> from django.utils import timezone
>>  >>>> p= Poll(question="what's new?",pub_date= timezone.now())
>>  > Traceback (most recent call last):
>>  >   File "", line 1, in 
>>  >   File "C:\Python27\lib\site-**packages\django\db\models\**
>> base.py",
>> line 367,
>>  > in __init__
>>  > raise TypeError("'%s' is an invalid keyword argument for this
>> function"
>>  > % kwargs.keys()[0])
>>  > TypeError: 'pub_date' is an invalid keyword argument for this
>> function
>>  >>>>
>>  >
>>  > --
>>  > You received this message because you are subscribed to the
>> Google Groups
>>  > "Django users" group.
>>  > To unsubscribe from this group and stop receiving emails from it,
>> send an
>>  > email to 
>> django-users+unsubscribe@**googlegroups.com
>> 
>> <mailto:django-users%**2bunsubscr...@googlegroups.com
>> **>.
>>
>>  > To post to this group, send email to
>> django-users@googlegroups.com 
>> <mailto:django-users@**googlegroups.com
>> >.
>>
>>  > Visit this group at
>> 
>> http://groups.google.com/**group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> .
>>  > For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>  >
>>  >
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>&

plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Avnesh Shakya

I have checked many time, even i have deleted my project n i have created 
new project again and create new model but error is occurred again n 
again.. i m beginner so plz help me

C:\mysite>python manage.py shell
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] 
on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from polls.models import Poll,Choice
>>> Poll.objects.all()
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 72, 
in __repr__
data = list(self[:REPR_OUTPUT_SIZE + 1])
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 87, 
in __len__
self._result_cache.extend(self._iter)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 291, 
in iterator
for row in compiler.results_iter():
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 763, in results_iter
for rows in self.execute_sql(MULTI):
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 818, in execute_sql
cursor.execute(sql, params)
  File "C:\Python27\lib\site-packages\django\db\backends\util.py", line 40, 
in execute
return self.cursor.execute(sql, params)
  File "C:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py", 
line 344, in execute
return Database.Cursor.execute(self, query, params)
DatabaseError: no such table: polls_poll
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: plz help me i have checked many time but i could not find error place.....

2013-02-06 Thread Avnesh Shakya
ya i have executed python manage.py syncdb...but still it's giving
error...

On Wed, Feb 6, 2013 at 7:01 PM, Thomas Weholt wrote:

> Have you executed python manage.py syncdb?
>
> Thomas
>
> On Wed, Feb 6, 2013 at 2:22 PM, Avnesh Shakya 
> wrote:
> >
> > I have checked many time, even i have deleted my project n i have created
> > new project again and create new model but error is occurred again n
> again..
> > i m beginner so plz help me
> >
> > C:\mysite>python manage.py shell
> > Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
> (Intel)] on
> > win32
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> >>>> from polls.models import Poll,Choice
> >>>> Poll.objects.all()
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line
> 72,
> > in __repr__
> > data = list(self[:REPR_OUTPUT_SIZE + 1])
> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line
> 87,
> > in __len__
> > self._result_cache.extend(self._iter)
> >   File "C:\Python27\lib\site-packages\django\db\models\query.py", line
> 291,
> > in iterator
> > for row in compiler.results_iter():
> >   File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
> > line 763, in results_iter
> > for rows in self.execute_sql(MULTI):
> >   File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py",
> > line 818, in execute_sql
> > cursor.execute(sql, params)
> >   File "C:\Python27\lib\site-packages\django\db\backends\util.py", line
> 40,
> > in execute
> > return self.cursor.execute(sql, params)
> >   File
> "C:\Python27\lib\site-packages\django\db\backends\sqlite3\base.py",
> > line 344, in execute
> > return Database.Cursor.execute(self, query, params)
> > DatabaseError: no such table: polls_poll
> >>>>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
please help me,i m beginner i m creating my registration model but how can 
i write password field? 
thanks in advance...   

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to password will come in hidden form in django?

2013-02-14 Thread Avnesh Shakya
i have created my Userinfo model for registration, but password is showing 
means it's not filling in hidden form so what will i have to do for it... 
please help me 

class Userinfo(models.Model):
full_name=models.CharField(max_length=30)
username=models.CharField(max_length=20)
email_address=models.CharField(max_length=75)
password=models.CharField(max_length=255)
reenter_password=models.CharField(max_length=255)
area_of_interest=models.CharField(max_length=255)
def _unicode_(self):
return self.full_name

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: please help me,how to create registration model

2013-02-14 Thread Avnesh Shakya
thanks alot...
tell me about html form, i have created a registration.html form. now i
want to store these things through its page.. so how can i do? i m nervous
because i m beginner.. plz tell me ... if any site is available for it plz
suggest me...

On Fri, Feb 15, 2013 at 11:49 AM, Sergiy Khohlov  wrote:

> Take a look at the examples
> https://docs.djangoproject.com/en/dev/topics/auth/default/
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Fri, Feb 15, 2013 at 7:23 AM, Avnesh Shakya wrote:
>
>> please help me,i m beginner i m creating my registration model but how
>> can i write password field?
>> thanks in advance...
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in my templates

2013-02-18 Thread Avnesh Shakya
NoReverseMatch at / 

*Reverse for 'myapp_about' with arguments '()' and keyword arguments '{}' not 
found.

i m adding here files, plz help me..

thanks in advance
*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


{%extends "home.html"%}
{%block title%}
About
{%endblock%}
{%block content%}
	About
{%endblock%}{%extends "home.html"%}
{%block title%}
Archive
{%endblock%}
{%block content%}
	Archive
{%endblock%}{%extends "home.html"%}
{%block title%}
Contact
{%endblock%}
{%block content%}
	Contact
{%endblock%}{% extends "base.html" %}
{% block title %}
  Home Page
{%endblock%}
{%block navi%}
   home
   about
   contact
   archive
{%endblock%}
{%block content%}
	Entries:
	{%for e in entries%}
		{{e.title}}-{{e.created}} 
			{{e.text}}
		
	{%endfor%}
{%endblock%}
{%block footer%}
2013 Blog
{%endblock%}


#from django.conf.urls.defaults import *
#urlpatterns= patterns('',
#	(r'^$','myapp.views.home'),
#)

from django.conf.urls.defaults import *
urlpatterns= patterns('myapp.views',
	url(r'^$','home',name="myapp_home"),
	url(r'^about/$','about',name="myapp_about"),
	url(r'^contact/$','contact',name="myapp_contact"),
	url(r'^archive/$','archive',name="myapp_archive"),
)from django.shortcuts import render_to_response
from data.models import Entry

def home(request):
	entries=Entry.objects.published_entries().order_by('-id')
	ctx={'entries':entries}
	return render_to_response("home.html",ctx)
	
def about(request):
	return render_to_response('about.html')
	
def contact(request):
	return render_to_response('contact.html')
	
def archive(request):
	return render_to_response('archive.html')

error in templates...

2013-02-19 Thread Avnesh Shakya
Hello, I'm stuck in teplagte page. error is occuring here after 
runserver..error.. NoReverseMatch at / Reverse for '' with arguments '()' 
and keyword arguments '{}' not found. 
I can't figure out why I'm getting the error, plz tell me, i have totally 
confused here.


thanks 

avnesh shakya

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error in templates...

2013-02-19 Thread Avnesh Shakya
ya i have completed and i m just doing copy n paste from from tutorial but
there is no error but i m facing this error again n again...
https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
can i add my page for help. i need your help plz..


On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt wrote:

> It means you haven't added any url matching / in your urlconfig, but
> it's hard to give a good answer without a bit more information. Have
> you completed the django tutorial which explains how these things
> work?
>
> Thomas
>
> On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya 
> wrote:
> > Hello, I'm stuck in teplagte page. error is occuring here after
> > runserver..
> >
> > error..
> >
> >  NoReverseMatch at / Reverse for '' with arguments '()' and keyword
> > arguments '{}' not found.
> >
> > I can't figure out why I'm getting the error, plz tell me, i have totally
> > confused here.
> >
> >
> > thanks
> >
> > avnesh shakya
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
>
> --
> Mvh/Best regards,
> Thomas Weholt
> http://www.weholt.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error in templates...

2013-02-19 Thread Avnesh Shakya
On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya wrote:

> ya i have completed and i m just doing copy n paste from from tutorial but
> there is no error but i m facing this error again n again...
> https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
> can i add my page for help. i need your help plz..
>
>
>
> On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt wrote:
>
>> It means you haven't added any url matching / in your urlconfig, but
>> it's hard to give a good answer without a bit more information. Have
>> you completed the django tutorial which explains how these things
>> work?
>>
>> Thomas
>>
>> On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya 
>> wrote:
>> > Hello, I'm stuck in teplagte page. error is occuring here after
>> > runserver..
>> >
>> > error..
>> >
>> >  NoReverseMatch at / Reverse for '' with arguments '()' and keyword
>> > arguments '{}' not found.
>> >
>> > I can't figure out why I'm getting the error, plz tell me, i have
>> totally
>> > confused here.
>> >
>> >
>> > thanks
>> >
>> > avnesh shakya
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to django-users+unsubscr...@googlegroups.com.
>> > To post to this group, send email to django-users@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/django-users?hl=en.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> Mvh/Best regards,
>> Thomas Weholt
>> http://www.weholt.org
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


{%extends "home.html"%}
{%block title%}
About
{%endblock%}
{%block content%}
	About
{%endblock%}{%extends "home.html"%}
{%block title%}
Archive
{%endblock%}
{%block content%}
	Archive
{%endblock%}Title: {%block title%}{%endblock%}



	My Blog
	{%block navi%}{%endblock%}
	{%block content%}{%endblock%}
	{%block footer%}{%endblock%}

{%extends "home.html"%}
{%block title%}
Contact
{%endblock%}
{%block content%}

	Contact
	
	{{contact_form.as_p}}
	
	
	
	
{%endblock%}{% extends "base.html" %}

{% block title %}
  Home Page
{%endblock%}

{%block navi%}

   home
   about
   archive
   contact
   
{%endblock%}



urls.py
Description: Binary data


Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi pankaj, i have got again error same..
if i change

from django.conf.urls.defaults import *
urlpatterns= patterns('myapp.views',
url(r'^$','home',name="home"),
url(r'^about/$','about',name="about"),
url(r'^contact/$','contact',name="contact"),
url(r'^contact/$','archive',name="archive"),
)
its to

from django.conf.urls.defaults import *
urlpatterns= patterns('myapp.views',
url(r'^$','home',name="home"),
url(r'^$','about',name="about"),
url(r'^$','contact',name="contact"),
url(r'^$','archive',name="archive"),
)
then it's not generating error but that links are not opening.
thanks

On Tue, Feb 19, 2013 at 4:28 PM, Pankaj Singh  wrote:

> Hey Avnesh,
>
> In your templates you have written following lines
>
> homeabout href="{% url archive %}">archivecontact
>
> Change them to following, notice single quotes surrounding url pattern name
>
> homeabout href="{% url 'archive' %}">archivecontact
>
>
>
> Sincerely,
> Pankaj Singh
> http://about.me/psjinx
>
>
> On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya wrote:
>
>>
>>
>> On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya wrote:
>>
>>> ya i have completed and i m just doing copy n paste from from tutorial
>>> but there is no error but i m facing this error again n again...
>>> https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
>>> can i add my page for help. i need your help plz..
>>>
>>>
>>>
>>> On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt 
>>> wrote:
>>>
>>>> It means you haven't added any url matching / in your urlconfig, but
>>>> it's hard to give a good answer without a bit more information. Have
>>>> you completed the django tutorial which explains how these things
>>>> work?
>>>>
>>>> Thomas
>>>>
>>>> On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya 
>>>> wrote:
>>>> > Hello, I'm stuck in teplagte page. error is occuring here
>>>> after
>>>> > runserver..
>>>> >
>>>> > error..
>>>> >
>>>> >  NoReverseMatch at / Reverse for '' with arguments '()' and keyword
>>>> > arguments '{}' not found.
>>>> >
>>>> > I can't figure out why I'm getting the error, plz tell me, i have
>>>> totally
>>>> > confused here.
>>>> >
>>>> >
>>>> > thanks
>>>> >
>>>> > avnesh shakya
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> Groups
>>>> > "Django users" group.
>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>> send an
>>>> > email to django-users+unsubscr...@googlegroups.com.
>>>> > To post to this group, send email to django-users@googlegroups.com.
>>>> > Visit this group at http://groups.google.com/group/django-users?hl=en
>>>> .
>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Mvh/Best regards,
>>>> Thomas Weholt
>>>> http://www.weholt.org
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error in templates...

2013-02-19 Thread Avnesh Shakya
ya i have done it but error has occured again..

On Tue, Feb 19, 2013 at 5:04 PM, Pankaj Singh  wrote:

> Hey,
>
> I asked you to make changes in templates (i.e. home.html, about.html etc.)
> and not urls.py.
>
>
> Sincerely,
> Pankaj Singh
> http://about.me/psjinx
>
>
> On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya wrote:
>
>> hi pankaj, i have got again error same..
>> if i change
>>
>> from django.conf.urls.defaults import *
>> urlpatterns= patterns('myapp.views',
>> url(r'^$','home',name="home"),
>> url(r'^about/$','about',name="about"),
>> url(r'^contact/$','contact',name="contact"),
>> url(r'^contact/$','archive',name="archive"),
>> )
>> its to
>>
>> from django.conf.urls.defaults import *
>> urlpatterns= patterns('myapp.views',
>> url(r'^$','home',name="home"),
>> url(r'^$','about',name="about"),
>> url(r'^$','contact',name="contact"),
>> url(r'^$','archive',name="archive"),
>> )
>> then it's not generating error but that links are not opening.
>> thanks
>>
>> On Tue, Feb 19, 2013 at 4:28 PM, Pankaj Singh  wrote:
>>
>>> Hey Avnesh,
>>>
>>> In your templates you have written following lines
>>>
>>> homeabout>> href="{% url archive %}">archivecontact
>>>
>>> Change them to following, notice single quotes surrounding url pattern
>>> name
>>>
>>> homeabout>> href="{% url 'archive' %}">archivecontact
>>>
>>>
>>>
>>> Sincerely,
>>> Pankaj Singh
>>> http://about.me/psjinx
>>>
>>>
>>> On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya wrote:
>>>
>>>>
>>>>
>>>> On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya 
>>>> wrote:
>>>>
>>>>> ya i have completed and i m just doing copy n paste from from tutorial
>>>>> but there is no error but i m facing this error again n again...
>>>>> https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
>>>>> can i add my page for help. i need your help plz..
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt <
>>>>> thomas.weh...@gmail.com> wrote:
>>>>>
>>>>>> It means you haven't added any url matching / in your urlconfig, but
>>>>>> it's hard to give a good answer without a bit more information. Have
>>>>>> you completed the django tutorial which explains how these things
>>>>>> work?
>>>>>>
>>>>>> Thomas
>>>>>>
>>>>>> On Tue, Feb 19, 2013 at 11:04 AM, Avnesh Shakya <
>>>>>> avnesh.n...@gmail.com> wrote:
>>>>>> > Hello, I'm stuck in teplagte page. error is occuring here
>>>>>> after
>>>>>> > runserver..
>>>>>> >
>>>>>> > error..
>>>>>> >
>>>>>> >  NoReverseMatch at / Reverse for '' with arguments '()' and keyword
>>>>>> > arguments '{}' not found.
>>>>>> >
>>>>>> > I can't figure out why I'm getting the error, plz tell me, i have
>>>>>> totally
>>>>>> > confused here.
>>>>>> >
>>>>>> >
>>>>>> > thanks
>>>>>> >
>>>>>> > avnesh shakya
>>>>>> >
>>>>>> > --
>>>>>> > You received this message because you are subscribed to the Google
>>>>>> Groups
>>>>>> > "Django users" group.
>>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an
>>>>>> > email to django-users+unsubscr...@googlegroups.com.
>>>>>> > To post to this group, send email to django-users@googlegroups.com.
>>>>>> > Visit this group at
>>>>>> http://groups.google.com/group/django-users?hl=en.
>>>>>> > For more options, 

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, i m adding my views.py file


On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh  wrote:

> Hey,
>
> Every things worked for me when I used your original templates and
> following urls.py.
>
> As you can notice, I have used generic view as I did not have original
> view function.
>
> Please share views.py because it's hard to help help without that.
>
> FYI, you can test reverse match by using django.core.urlresolvers.reverse
> in shell.
>
>  ### urls.py
> from django.conf.urls import patterns, include, url
> from django.views.generic.simple import direct_to_template
>
> urlpatterns = patterns('',
> url(r'^$', direct_to_template, {"template": "home.html"},
> name="home"),
> url(r'^about/$', direct_to_template, {"template": "about.html"},
> name="about"),
> url(r'^contact/$', direct_to_template, {"template":
> "contact.html"},
> name="contact"),
>     url(r'^archive/$', direct_to_template, {"template":
> "archive.html"},
> name="archive"),
> )
>
> Sincerely,
> Pankaj Singh
> http://about.me/psjinx
>
>
> On Tue, Feb 19, 2013 at 5:06 PM, Avnesh Shakya wrote:
>
>> ya i have done it but error has occured again..
>>
>>
>> On Tue, Feb 19, 2013 at 5:04 PM, Pankaj Singh  wrote:
>>
>>> Hey,
>>>
>>> I asked you to make changes in templates (i.e. home.html, about.html
>>> etc.) and not urls.py.
>>>
>>>
>>> Sincerely,
>>> Pankaj Singh
>>> http://about.me/psjinx
>>>
>>>
>>> On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya wrote:
>>>
>>>> hi pankaj, i have got again error same..
>>>> if i change
>>>>
>>>> from django.conf.urls.defaults import *
>>>> urlpatterns= patterns('myapp.views',
>>>> url(r'^$','home',name="home"),
>>>> url(r'^about/$','about',name="about"),
>>>> url(r'^contact/$','contact',name="contact"),
>>>> url(r'^contact/$','archive',name="archive"),
>>>> )
>>>> its to
>>>>
>>>> from django.conf.urls.defaults import *
>>>> urlpatterns= patterns('myapp.views',
>>>> url(r'^$','home',name="home"),
>>>> url(r'^$','about',name="about"),
>>>> url(r'^$','contact',name="contact"),
>>>> url(r'^$','archive',name="archive"),
>>>> )
>>>> then it's not generating error but that links are not opening.
>>>> thanks
>>>>
>>>> On Tue, Feb 19, 2013 at 4:28 PM, Pankaj Singh wrote:
>>>>
>>>>> Hey Avnesh,
>>>>>
>>>>> In your templates you have written following lines
>>>>>
>>>>> homeabout>>>> href="{% url archive %}">archivecontact
>>>>>
>>>>> Change them to following, notice single quotes surrounding url pattern
>>>>> name
>>>>>
>>>>> homeaboutarchivecontact
>>>>>
>>>>>
>>>>>
>>>>> Sincerely,
>>>>> Pankaj Singh
>>>>> http://about.me/psjinx
>>>>>
>>>>>
>>>>> On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya >>>>> > wrote:
>>>>>>
>>>>>>> ya i have completed and i m just doing copy n paste from from
>>>>>>> tutorial but there is no error but i m facing this error again n 
>>>>>>> again...
>>>>>>>
>>>>>>> https://www.udemy.com/full-django-tutorial/#lecture/63701/question/9902
>>>>>>> can i add my page for help. i need your help plz..
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Feb 19, 2013 at 3:39 PM, Thomas Weholt <
>>>>>>> thomas.weh...@gmail.com> wrote:
>>>>>>>
>>>>>>>>

Re: error in templates...

2013-02-19 Thread Avnesh Shakya
hi, if you have any mini project on django, plz share, i m beginner it can
be helpful for me... plz share if u have..
thanks alot

On Tue, Feb 19, 2013 at 5:58 PM, Avnesh Shakya wrote:

> hi, i m adding my views.py file
>
>
>
> On Tue, Feb 19, 2013 at 5:44 PM, Pankaj Singh  wrote:
>
>> Hey,
>>
>> Every things worked for me when I used your original templates and
>> following urls.py.
>>
>> As you can notice, I have used generic view as I did not have original
>> view function.
>>
>> Please share views.py because it's hard to help help without that.
>>
>> FYI, you can test reverse match by using django.core.urlresolvers.reverse
>> in shell.
>>
>>  ### urls.py
>> from django.conf.urls import patterns, include, url
>> from django.views.generic.simple import direct_to_template
>>
>> urlpatterns = patterns('',
>> url(r'^$', direct_to_template, {"template": "home.html"},
>> name="home"),
>> url(r'^about/$', direct_to_template, {"template": "about.html"},
>> name="about"),
>> url(r'^contact/$', direct_to_template, {"template":
>> "contact.html"},
>> name="contact"),
>> url(r'^archive/$', direct_to_template, {"template":
>> "archive.html"},
>> name="archive"),
>> )
>>
>> Sincerely,
>> Pankaj Singh
>> http://about.me/psjinx
>>
>>
>> On Tue, Feb 19, 2013 at 5:06 PM, Avnesh Shakya wrote:
>>
>>> ya i have done it but error has occured again..
>>>
>>>
>>> On Tue, Feb 19, 2013 at 5:04 PM, Pankaj Singh  wrote:
>>>
>>>> Hey,
>>>>
>>>> I asked you to make changes in templates (i.e. home.html, about.html
>>>> etc.) and not urls.py.
>>>>
>>>>
>>>> Sincerely,
>>>> Pankaj Singh
>>>> http://about.me/psjinx
>>>>
>>>>
>>>> On Tue, Feb 19, 2013 at 4:56 PM, Avnesh Shakya 
>>>> wrote:
>>>>
>>>>> hi pankaj, i have got again error same..
>>>>> if i change
>>>>>
>>>>> from django.conf.urls.defaults import *
>>>>> urlpatterns= patterns('myapp.views',
>>>>> url(r'^$','home',name="home"),
>>>>> url(r'^about/$','about',name="about"),
>>>>> url(r'^contact/$','contact',name="contact"),
>>>>> url(r'^contact/$','archive',name="archive"),
>>>>> )
>>>>> its to
>>>>>
>>>>> from django.conf.urls.defaults import *
>>>>> urlpatterns= patterns('myapp.views',
>>>>> url(r'^$','home',name="home"),
>>>>> url(r'^$','about',name="about"),
>>>>> url(r'^$','contact',name="contact"),
>>>>> url(r'^$','archive',name="archive"),
>>>>> )
>>>>> then it's not generating error but that links are not opening.
>>>>> thanks
>>>>>
>>>>> On Tue, Feb 19, 2013 at 4:28 PM, Pankaj Singh wrote:
>>>>>
>>>>>> Hey Avnesh,
>>>>>>
>>>>>> In your templates you have written following lines
>>>>>>
>>>>>> homeabout>>>>> href="{% url archive %}">archivecontact
>>>>>>
>>>>>> Change them to following, notice single quotes surrounding url
>>>>>> pattern name
>>>>>>
>>>>>> homeaboutarchivecontact
>>>>>>
>>>>>>
>>>>>>
>>>>>> Sincerely,
>>>>>> Pankaj Singh
>>>>>> http://about.me/psjinx
>>>>>>
>>>>>>
>>>>>> On Tue, Feb 19, 2013 at 4:06 PM, Avnesh Shakya >>>>> > wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Feb 19, 2013 at 3:47 PM, Avnesh Shakya <
>>>>>>> avnesh.n...@gmail.com> wrote:
>>>>>>>
>>>>>>>&g

how to create attribute for image in django models.py

2013-02-20 Thread Avnesh Shakya
plz help me... i want to store image in database using model,how is it
possible...?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to create attribute for image in django models.py

2013-02-20 Thread Avnesh Shakya
thanks alot plz share any small project for beginners, if u have

On Wed, Feb 20, 2013 at 6:02 PM, Tom Evans  wrote:

> On Wed, Feb 20, 2013 at 12:26 PM, Avnesh Shakya 
> wrote:
> > plz help me... i want to store image in database using model,how is it
> > possible...?
> >
>
> https://docs.djangoproject.com/en/1.4/ref/models/fields/#imagefield
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in image display

2013-02-20 Thread Avnesh Shakya
i have created a model for image and added in admin. It's uploading images 
fine but when i m trying to display it's generating error this


Using the URLconf defined in chh.urls, Django tried these URL patterns, in 
this order:

   1. ^admin/

The current URL, photos/photos/DSCN0811.JPG, didn't match any of these.



i have set MEDIA_ROOT= 'C:/chh/photos'

and MEDIA_URL= '/photos/'

in settings.py of this project.. 



models.py is-



from django.db import models
from PIL import Image

class Photo(models.Model):
photo = models.ImageField(upload_to='photos')

def save(self, size=(200, 200)):
"""
REQUIRES:
1.'from PIL import Image'

DOES:
1.check to see if the image needs to be resized
2.check how to resize the image based on its aspect 
ratio
3.resize the image accordingly

ABOUT:
based loosely on djangosnippet #688
http://www.djangosnippets.org/snippets/688/

VERSIONS I'M WORKING WITH:
Django 1.0
Python 2.5.1

BY:
Tanner Netterville
tan...@cabedge.com
"""

if not self.id and not self.photo:
return

super(Photo, self).save()

pw = self.photo.width
ph = self.photo.height
nw = size[0]
nh = size[1]

# only do this if the image needs resizing
if (pw, ph) != (nw, nh):
filename = str(self.photo.path)
image = Image.open(filename)
pr = float(pw) / float(ph)
nr = float(nw) / float(nh)

if pr > nr:
# photo aspect is wider than destination ratio
tw = int(round(nh * pr))
image = image.resize((tw, nh), Image.ANTIALIAS)
l = int(round(( tw - nw ) / 2.0))
image = image.crop((l, 0, l + nw, nh))
elif pr < nr:
# photo aspect is taller than destination ratio
th = int(round(nw / pr))
image = image.resize((nw, th), Image.ANTIALIAS)
t = int(round(( th - nh ) / 2.0))
print((0, t, nw, t + nh))
image = image.crop((0, t, nw, t + nh))
else:
# photo aspect matches the destination ratio
image = image.resize(size, Image.ANTIALIAS)

image.save(filename)




plz help me i have tried my best but i could not find it
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error in image display

2013-02-20 Thread Avnesh Shakya
thanks all i have got my error... i was not creating a folder in photos
that's why it generates error and url problem i have set it and now it's
work fine
thanks

On Thu, Feb 21, 2013 at 11:01 AM, Avnesh Shakya wrote:

> i have created a model for image and added in admin. It's uploading images
> fine but when i m trying to display it's generating error this
>
>
> Using the URLconf defined in chh.urls, Django tried these URL patterns,
> in this order:
>
>1. ^admin/
>
> The current URL, photos/photos/DSCN0811.JPG, didn't match any of these.
>
>
>
> i have set MEDIA_ROOT= 'C:/chh/photos'
>
> and MEDIA_URL= '/photos/'
>
> in settings.py of this project..
>
>
>
> models.py is-
>
>
>
> from django.db import models
> from PIL import Image
>
> class Photo(models.Model):
> photo = models.ImageField(upload_to='photos')
>
> def save(self, size=(200, 200)):
> """
> REQUIRES:
> 1.'from PIL import Image'
>
> DOES:
> 1.check to see if the image needs to be resized
> 2.check how to resize the image based on its aspect
> ratio
> 3.resize the image accordingly
>
> ABOUT:
> based loosely on djangosnippet #688
> http://www.djangosnippets.org/snippets/688/
>
> VERSIONS I'M WORKING WITH:
> Django 1.0
> Python 2.5.1
>
> BY:
> Tanner Netterville
> tan...@cabedge.com
> """
>
> if not self.id and not self.photo:
> return
>
> super(Photo, self).save()
>
> pw = self.photo.width
> ph = self.photo.height
> nw = size[0]
> nh = size[1]
>
> # only do this if the image needs resizing
> if (pw, ph) != (nw, nh):
> filename = str(self.photo.path)
> image = Image.open(filename)
> pr = float(pw) / float(ph)
> nr = float(nw) / float(nh)
>
> if pr > nr:
> # photo aspect is wider than destination ratio
> tw = int(round(nh * pr))
> image = image.resize((tw, nh), Image.ANTIALIAS)
> l = int(round(( tw - nw ) / 2.0))
> image = image.crop((l, 0, l + nw, nh))
> elif pr < nr:
> # photo aspect is taller than destination ratio
> th = int(round(nw / pr))
> image = image.resize((nw, th), Image.ANTIALIAS)
> t = int(round(( th - nh ) / 2.0))
> print((0, t, nw, t + nh))
> image = image.crop((0, t, nw, t + nh))
> else:
> # photo aspect matches the destination ratio
> image = image.resize(size, Image.ANTIALIAS)
>
> image.save(filename)
>
>
>
>
> plz help me i have tried my best but i could not find it
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




problem in displaying data on html

2013-02-28 Thread Avnesh Shakya
hi i have one problem, i want to display data from database on html page
all data is displaying but one attribute(university name) which i defined
as models.ManyToManyField(University) is not being displyed, it's not
generating error but it showing msz on html page-

instead of showing university name

plz help me...
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: problem in displaying data on html

2013-02-28 Thread Avnesh Shakya
thanks i got it
thanks

On Thu, Feb 28, 2013 at 7:19 PM, Roberto López López
wrote:

>
> If you just output a m2m field that's normal. If you rather prefer to
> iterate over it and show all the related objects, use a for loop...
>
>
> On 02/28/2013 02:43 PM, Avnesh Shakya wrote:
> > hi i have one problem, i want to display data from database on html page
> > all data is displaying but one attribute(university name) which i
> > defined as models.ManyToManyField(University) is not being displyed,
> > it's not generating error but it showing msz on html page-
> > 
> > instead of showing university name
> >
> > plz help me...
> > thanks
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at http://groups.google.com/group/django-users?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
> --
> Kind regards,
>
> Roberto López López
>
>
> System Developer
> Parallab, Uni Computing
> Høyteknologisenteret, Thormøhlensgate 55
> N-5008 Bergen, Norway
> Tel:(+47) 555 84091
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in filling data in dtabase through admin page..

2013-02-28 Thread Avnesh Shakya
hi, i have got one error during adding data in database though admin page, 
actually it was working fine, but i made some attributes optional, now it's 
generating error..
i m adding m models.py ,plz help me..
thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


from django.db import models
from PIL import Image
from lrntkr.managers import CourseManager

class University(models.Model):
	name= models.CharField(max_length=70)
	address = models.CharField(max_length=120,blank=True,null=True)
	country = models.CharField(max_length=30)
	website = models.URLField()
	def __unicode__(self):
		return (self.name)
	
	
class Instructor(models.Model):
	name = models.CharField(max_length=70)
	specilist= models.CharField(max_length=120)
	about= models.CharField(max_length=200,blank=True,null=True)
	email= models.EmailField()
	universities = models.ManyToManyField(University)
	def __unicode__(self):
		return self.name

class Course(models.Model):
	title   = models.CharField(max_length=70)
	stream  = models.CharField(max_length=70)
	universities = models.ManyToManyField(University)
	instruct= models.ManyToManyField(Instructor)
	description = models.CharField(max_length=70,blank=True, null=True)
	start_date  = models.CharField(max_length=30)
	work_load   = models.CharField(max_length=30)
	logo= models.ImageField(upload_to='logos',blank=True,null=True)
	intro   = models.URLField(verify_exists = False, max_length = 225,blank=True,null=True)
	initiative  = models.URLField(verify_exists = False, max_length = 225,blank=True,null=True)
	initiator   = models.CharField(max_length=50,blank=True,null=True) 
	courseinfo  = models.BooleanField(db_index=True,default=True)
	
	objects = CourseManager()
	
	def save(self, size=(200, 200)):
		if not self.id and not self.logo:
			return
		
		super(Course, self).save()
		
		pw = self.logo.width
		ph = self.logo.height
		nw = size[0]
		nh = size[1]
		
		# only do this if the image needs resizing
		if (pw, ph) != (nw, nh):
			filename = str(self.logo.path)
			image = Image.open(filename)
			pr = float(pw) / float(ph)
			nr = float(nw) / float(nh)
			
			if pr > nr:
# photo aspect is wider than destination ratio
tw = int(round(nh * pr))
image = image.resize((tw, nh), Image.ANTIALIAS)
l = int(round(( tw - nw ) / 2.0))
image = image.crop((l, 0, l + nw, nh))
			elif pr < nr:
# photo aspect is taller than destination ratio
th = int(round(nw / pr))
image = image.resize((nw, th), Image.ANTIALIAS)
t = int(round(( th - nh ) / 2.0))
print((0, t, nw, t + nh))
image = image.crop((0, t, nw, t + nh))
			else:
# photo aspect matches the destination ratio
image = image.resize(size, Image.ANTIALIAS)

			image.save(filename)
	def __unicode__(self):
		return self.title
		
GENDER_CHOICES = (
('M', 'Male'),
('F', 'Female'),
)
		
class Student(models.Model):
	name   = models.CharField(max_length=70)
	birth_date = models.DateField(blank=True, null=True)
	email_id   = models.EmailField()
	contact_no = models.IntegerField(blank=True,null=True)
	address= models.CharField(max_length=120,blank=True, null=True)
	gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
	courses= models.ManyToManyField(Course)
	
	def __unicode__(self):
		return self.name
		


error in filling data in database through admin page

2013-02-28 Thread Avnesh Shakya
hi, 
 i have got one error during adding data in database though admin page, 
actually it was working fine, but i made some attributes optional, now it's 
generating error..
i m adding m models.py ,
error--  

" needs to have a value for field "course" before 
this many-to-many relationship can be used.

plz help me..

thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error in filling data in database through admin page

2013-03-01 Thread Avnesh Shakya
ya i m adding now please help me

On Fri, Mar 1, 2013 at 8:43 PM, C. Kirby  wrote:

> It would be helpful to see the model definition(s) and the admin.py if you
> wrote one
>
> On Friday, March 1, 2013 1:06:34 AM UTC-6, Avnesh Shakya wrote:
>>
>> hi,
>>  i have got one error during adding data in database though admin
>> page, actually it was working fine, but i made some attributes optional,
>> now it's generating error..
>> i m adding m models.py ,
>> error--
>>
>> " needs to have a value for field "course" before 
>> this many-to-many relationship can be used.
>>
>> plz help me..
>>
>> thanks in advance
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




admin.py
Description: Binary data


models.py
Description: Binary data


error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
hi i have got error- IntegrityError at /register/

lrntkr_student.contact_no may not be NULL

,when i was trying to input data through html page(register.html), but data
is not updating in database and generating that error. please help me i m
unable to find this error.

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


{%extends "homepage/index.html"%}
{%block title%}
 Login
{%endblock%}

{%block content%}
	
{% if not success %}

Registration
		
			
Name:
			
			

{% if name_error == "" %}
 Name will contain first name and last name character.
{% else %}
	{{ name_error }}
{% endif %}
			
		
		
			
Email id:
			
			

{% if emailid_error == "" %}
 Example : u...@mail.com
{% else %}
 {{ emailid_error }}
{% endif %}
			
		
	   		
			
User Name:
			
			

{% if username_error == "" %}
 User name contain 6-8 letter combination of alphabet and digit no special character.
{% else %}
	{{ username_error }}
{% endif %}
			
		
		
			
Password:
			
			

{% if password_error == "" %}
Password Must contain 8-15 Character.
{% else %}
 {{ password_error }}
{% endif %}
			
		
		
			
Re-password:
			
			

{% if rpassword_error == "" %}
password is not matching
{% else %}
 {{ rpassword_error }}
{% endif %}
			
		
	
	
		
Date Of Birth:
		
		
		
			Month
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
		

		
			Day
			1
			2
			3
			4
			5
			6
			7
			8
			9
			10
			11
			12
			13
			14
			15
			16
			17
			18	
			19
			20
			21
			22
			23
			24
			25
			26
			27
			28
			29
			30
			31
		
	
		
			Year
			2009
			2008
2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997
1996
1995
1994
1993
1992
1991
1990
1989
1988
1987
1986
1985
1984
1983
1982
1981
1980
1979
1978
1977
1976
1975
1974
1973
1972
1971
1970
1969
1968
1967
1966
1965
1964
1963
1962
1961
1960
1959
1958
1957
1956
1955
1954
1953
1952
1951
1950
1949
1948
1947
1946
1945
1944
1943
1942
1941
1940
1939
1938
1937
1936
1935
1934
1933
1932
1931
1930
1929
1928
1927
1926
1925
1924
1923
1922
1921
1920
1919
1918
1917
1916
1915
1914
1913
1912
1911
1910
1909


	
	

		
			Gender:
		
		
		Male
Female
		
	
 
 
		
			Address:
		
		
		
		{% if address_error == "" %}
need correct address
{% else %}
 {{ address_error }}
{% endif %}
		
	
	
	
		
			Contact no.:
		
		

		{% if contact_error == "" %}
take only 11 digit
{% else %}
 {{ contact_error }}
{% endif %}
		
	
	
	
  

	
	
	
  
{% else %}
Hi Thank you for your Registraton.
{% endif %}

{%endblock%}

models.py
Description: Binary data


views.py
Description: Binary data


Re: error- IntegrityError at /register/

2013-03-06 Thread Avnesh Shakya
thanks i got it
regards,
Avnesh shakya

On Thu, Mar 7, 2013 at 10:09 AM, Avnesh Shakya wrote:

> hi i have got error- IntegrityError at /register/
>
> lrntkr_student.contact_no may not be NULL
>
> ,when i was trying to input data through html page(register.html), but
> data is not updating in database and generating that error. please help me
> i m unable to find this error.
>
> thanks
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
I am using an anchor tag and have to access its content in python. I have
to access the 'text' from this.

in html page--

{% for c in courses%}

{{c.title}}{{c.stream}}

i want to get {{c.stream}} value so that i can use it in views.py i want to
filter the content acoording to it, and want to display after shorting acc.
it.

plz help me...

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
Actually, i have lot of different-2 stream, now i want to make it as link,
so that i can click on particular stream and it should filter data
according to that stream({{c.stream}}) on same page.

thanks

On Fri, Mar 8, 2013 at 3:08 PM, Daniel Roseman wrote:

> On Friday, 8 March 2013 09:07:12 UTC, Avnesh Shakya wrote:
>
>> I am using an anchor tag and have to access its content in python. I have
>> to access the 'text' from this.
>>
>> in html page--
>>
>> {% for c in courses%}
>> 
>> {{c.title}}**> href="cd.html">{{c.stream}}
>>
>> i want to get {{c.stream}} value so that i can use it in views.py i want
>> to filter the content acoording to it, and want to display after shorting
>> acc. it.
>>
>> plz help me...
>>
>> thanks
>>
>
> It's very unclear what you want to do. But I suspect you should be trying
> to use that parameter as part of your URL:
>
> {{ c.stream }}
>
> Or even better, use the {% url %} tag to calculate the correct URL.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to get value of anchor tag which is taken from database using python.

2013-03-08 Thread Avnesh Shakya
ya i got it 
I used   {{ c.stream }}

and in url -
  url(r'^(?P[^/]+)/$','stream',name="stream"),

  so here detail will store that value...

and in views-
def stream(request,detail):
courses = Course.objects.filter(stream = detail )
ctx = {'courses':courses}
return render_to_response('homepage/index.html', ctx)

thanks
regards,
avnesh shakya

On Fri, Mar 8, 2013 at 3:40 PM, Avnesh Shakya  wrote:

> Actually, i have lot of different-2 stream, now i want to make it as link,
> so that i can click on particular stream and it should filter data
> according to that stream({{c.stream}}) on same page.
>
> thanks
>
>
> On Fri, Mar 8, 2013 at 3:08 PM, Daniel Roseman wrote:
>
>> On Friday, 8 March 2013 09:07:12 UTC, Avnesh Shakya wrote:
>>
>>> I am using an anchor tag and have to access its content in python. I
>>> have to access the 'text' from this.
>>>
>>> in html page--
>>>
>>> {% for c in courses%}
>>> 
>>> {{c.title}}**>> href="cd.html">{{c.stream}}
>>>
>>> i want to get {{c.stream}} value so that i can use it in views.py i want
>>> to filter the content acoording to it, and want to display after shorting
>>> acc. it.
>>>
>>> plz help me...
>>>
>>> thanks
>>>
>>
>> It's very unclear what you want to do. But I suspect you should be trying
>> to use that parameter as part of your URL:
>>
>> {{ c.stream }}
>>
>> Or even better, use the {% url %} tag to calculate the correct URL.
>> --
>> DR.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to display large data by scrolling html page using python and django?

2013-03-10 Thread Avnesh Shakya
hi,
 i have stored data in database,but it has large data,so it's showing
only 20-25 rows of data on html page. I want to show all data using
scrolling. how is it possible?
Please help me
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to display large data by scrolling html page using python and django?

2013-03-11 Thread Avnesh Shakya
ya i m trying  to display data from database on html page, but it's showing
20-25 rows of data from database..Actually i want to display 25 rows of
data after that i want show 25 rows of data,that time last 20 rows should
be flushed by scrolling and it should be repeat again-2
thanks

On Mon, Mar 11, 2013 at 7:53 PM, Jaimin Patel  wrote:

> What control you are using to display? What do you mean by you want to
> show all data using scrolling? Is your query restricting top 20 records
> only, and you want to override that to get more?
>
>
> On Monday, March 11, 2013 12:41:05 AM UTC-4, Avnesh Shakya wrote:
>>
>> hi,
>>  i have stored data in database,but it has large data,so it's showing
>> only 20-25 rows of data on html page. I want to show all data using
>> scrolling. how is it possible?
>> Please help me
>> Thanks
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in installing django-facebook

2013-03-11 Thread Avnesh Shakya
i m trying to install django-facebook but it's showing error, i unable to
catch it please help me.
error -
C:\django-facebook-5.0.2prealpha>python setup.py install
No handlers could be found for logger "django_facebook"
Traceback (most recent call last):
  File "setup.py", line 11, in 
from distutils.core import setup, find_packages
ImportError: cannot import name find_packages


thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error- A server error occurred. Please contact the administrator.

2013-03-11 Thread Avnesh Shakya
hi,
 I m trying to login on my site through my own site, so i have
installed django-facebook, i have set setting in setting.py. Now i m trying
to run server but it's showing error.
plz help me..   i m unable to find out..

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





  



	
	{% block header %} {% endblock %}
	{%block navi%}{%endblock%}
	{%block content%}{%endblock%}
	{%block footer%}{%endblock%}
	
	
  
  
  
  
  

  

	{% initialize_facebook_connect %}




settings.py
Description: Binary data
{%extends "homepage/index.html"%}
{%block title%}
{%endblock%}

{%block content%}
{% show_connect_button %}


  

Login


			
User Name:
			
			


			
		

		
			
Password:
			
			

			
		

  
  
  
  
  
  
  sign-up
  
  

  

{%endblock%}

{%extends "base.html"%}
{% load facebook_tags %}
{% block header %}


Welcome for Learning Treacker
This is a Learning treacker app generated on March 2nd , 2013.



{% endblock %}
{%block navi%}

  

  


  

  Learning Tracker

  


  
		  
			
			
			home
			
			
		  



 
 
  
  about
  
 
 



university






contact






blog






login






register





  

{%endblock%}
{%block content%}

	
TITLE
STREAM
UNIVERSITY
INSTRUCTOR
DESCRIPTION
START DATE
INTRO
INITIATIVE



{% for c in courses%}
		
		{{c.title}}
{{ c.stream }}
{{ c.universities }}
{{ c.instruct }}
{{c.description}}
{{c.start_date}}

{{c.initiator}}

	{%endfor%}
	

	 
  LEARNING TRACKER
  HOME
  ABOUT
  CODE EVENT
  
  
  
  «
  1
  2
  3
  4
  …
  12
  13
  »

	
{%endblock%}

{%block footer%}


Learning treacker
{%endblock%}

error

2013-03-13 Thread Avnesh Shakya
I have set facebook button for login through facebook on my site, but when
i m clicking on that button, it's showing  this error, i m unable to
find,pleaze help me...
I m using 127.0.0.1:8000 as domain name.

Error
An error occurred. Please try again later.

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the
Application configuration.


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to get data from other website after login on other sites through my site?

2013-03-15 Thread Avnesh Shakya
Hi,
Actually I want to get data from other website, for example-- i have my
django wesite, and one user login on my site then he click on link of other
site(like coursera), which is given on my site, and login on coursera, then
i want to get user's data from coursera site,not secure data, only course
performance data
please help me... i m unable to find out solution of this problem

thanks in advance..
regards,
  Avnesh shakya

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in sql..

2013-03-20 Thread Avnesh Shakya

Hi,i m facing problem in mysql line, plz help me,i m unable to get 
solution...

import MySQLdb
import urllib
import json
from bs4 import BeautifulSoup
tdd=json.loads(urllib.urlopen('https://www.coursera.org/maestro/api/topic/list2').read())
tsl=tdd['unis']

try:
conn=MySQLdb.connect(host="127.0.0.1",
user="root",
passwd="avnesh27",
db="course_detail",port=3306)
x= conn.cursor()
result = []
for i in range(len(tsl)):
home_link = tsl[i]['home_link']
cor_id = tsl[i]['id']
name = tsl[i]['name']
sql = "Select uni_id , name from universities where EXISTS(uni_id = 
cor_id and name = name"
result = x.execute(sql)
if (result):
sql = "insert into universites (uni_id, home_link,name) values(%d, 
%s, %s)" %(cor_id, home_link, name)
x.execute(sql)

conn.commit()
conn.close()
except Exception, e:
print "Error %s" % e


error is--
Error (1064, "You have an error in your SQL syntax; check the manual that 
corresponds to your MySQL server version for the right syntax to use near 
'uni_id = cor_id and name = name' at line 1")

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




my project is not working in virtualenv in ubuntu?

2013-03-31 Thread Avnesh Shakya
hi,
   please tell me,what is issue with me, I am using virtualenv in ubuntu, i 
am fine in window,but here it's not showing admin pages,
   I have installed apache2 and wsgi, i want to run my project through my 
own apache2.but its not showing 
my pages-
/var/www/mydomain.com/index.py  

import os
import sys
import site

# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('~/.virtualenvs/DJ/local/lib/python2.7/site-packages')

# Add the app's directory to the PYTHONPATH
sys.path.append('/home/avnProject/avnProject')
sys.path.append('/home/avnProject/avnProject/avnproject')

os.environ['DJANGO_SETTINGS_MODULE'] = 'avnproject.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

AND
second file is-- path
/etc/apache2/sites-available/mydomain.com


ServerAdmin avn...@techhue.com
ServerName localhost
ServerAlias mydomain.com
WSGIScriptAlias / var/www/mydomain.com/index.wsgi

Alias /static/ /var/www/mydomain.com/static/

Options -Indexes



Myproject directory is  /home/avin/avnProject/

please help me
i m trying localhost/mydomain.com then fine when I put 
localhost/mydomain.com/index.wsgi,then it's downloading it..
and i m unable to open admin page here


Thanks in advance...
 


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error with new version of django.

2013-04-01 Thread Avnesh Shakya
hi,
I was using django 1.4 version in window 7. now i am using django 1.5 
version using virtualenv in ubuntu. now i am running my old project it's 
generating error.

error is - 
NoReverseMatch at / 


'url' requires a non-empty first argument. The syntax changed in Django 1.5, 
see the docs.

 Request Method: GET  Request URL: http://127.0.0.1:8000/  Django Version: 
1.5.1  Exception Type: NoReverseMatch  Exception Value: 

'url' requires a non-empty first argument. The syntax changed in Django 1.5, 
see the docs.

 Exception Location: 
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/template/defaulttags.py
 
in render, line 402  Python Executable: 
/home/avin/.virtualenvs/DJ/bin/python  Python Version: 2.7.3  Python Path: 

['/home/avin/learnt',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django_socialregistration-0.5.10-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/django_socialregistration-0.5.10-py2.7.egg',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',
 
'/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',
 '/home/avin/.virtualenvs/DJ/lib/python2.7',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/plat-linux2',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-tk',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-old',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages',
 '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages']

 Server time: Mon, 1 Apr 2013 13:10:52 +0530  
 Error during template rendering 

In template /home/avin/learnt/learnt/templates/homepage/index.html, error 
at line *44*
'url' requires a non-empty first argument. The syntax changed in Django 
1.5, see the docs. 34  35 {% endblock %} 36 {%block navi%} 37  38  39  40  
41  42  43  44  45 Learning Tracker 46  47  48  49 hhh 50  51  52  53  54 home  
Traceback Switch to copy-and-paste view  
   
   - 
   
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/core/handlers/base.pyin
 
   get_response 
   1. 
  
  response = callback(request, *callback_args, 
**callback_kwargs)
  
  ...
▶ Local vars  
   - /home/avin/learnt/lrntkr/views.py in index 
   1. 
  
  return render_to_response('homepage/index.html', 
ctx,context_instance=RequestContext(request))
  
  ...
▶ Local vars  
   - 
   
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/shortcuts/__init__.pyin
 
   render_to_response 
   1. 
  
  return HttpResponse(loader.render_to_string(*args, **kwargs), 
**httpresponse_kwargs)
  
  ...
▶ Local vars  
   - 
   
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/template/loader.pyin
 
   render_to_string 
   1. 
  
  return t.render(context_instance)
  
  ...
▶ Local vars  
   - 
   
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/template/base.pyin
 
   render 
   1. 
  
  return self._render(context)
  
  ...
▶ Local vars  
   - 
   
/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/template/base.pyin
 
   _render 
   1. 
  
  return self.nodelist.render(context)
  
  
Please help me how to remove this.

THANKS,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error with new version of django.

2013-04-01 Thread Avnesh Shakya
Ok i got it new version problem
I ran commond this..

find . -type f -print0 | xargs -0 sed -i 's/ url \([^" >][^ >]*\)/ url "\1"/g'

  It'll go through all of your template files and replace this:

{% url index.html %}

with this

{% url "index.html" %}


Thanks to all


On Mon, Apr 1, 2013 at 1:58 PM, Avnesh Shakya  wrote:

> hi,
> I was using django 1.4 version in window 7. now i am using django 1.5
> version using virtualenv in ubuntu. now i am running my old project it's
> generating error.
>
> error is -
> NoReverseMatch at /
>
>
> 'url' requires a non-empty first argument. The syntax changed in Django 1.5, 
> see the docs.
>
>  Request Method: GET  Request URL: http://127.0.0.1:8000/  Django Version:
> 1.5.1  Exception Type: NoReverseMatch  Exception Value:
>
> 'url' requires a non-empty first argument. The syntax changed in Django 1.5, 
> see the docs.
>
>  Exception Location: 
> /home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/template/defaulttags.py
> in render, line 402  Python Executable:
> /home/avin/.virtualenvs/DJ/bin/python  Python Version: 2.7.3  Python Path:
>
> ['/home/avin/learnt',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django_socialregistration-0.5.10-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/django_socialregistration-0.5.10-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/python_openid-2.2.5-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/oauth2-1.5.211-py2.7.egg',
>  
> '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages/httplib2-0.8-py2.7.egg',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/plat-linux2',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-tk',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-old',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/lib-dynload',
>  '/usr/lib/python2.7',
>  '/usr/lib/python2.7/plat-linux2',
>  '/usr/lib/python2.7/lib-tk',
>  '/home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages',
>  '/home/avin/.virtualenvs/DJ/lib/python2.7/site-packages']
>
>  Server time: Mon, 1 Apr 2013 13:10:52 +0530
>  Error during template rendering
>
> In template /home/avin/learnt/learnt/templates/homepage/index.html, error
> at line *44*
> 'url' requires a non-empty first argument. The syntax changed in Django
> 1.5, see the docs. 34  35 {% endblock %} 36 {%block navi%} 37  class="row"> 38  39  40 
> 41  42  43  44  45 Learning Tracker 46  47  48  49  class="toggle-topbar">hhh 50  51  52  class="name"> 53  54 home
> Traceback Switch to copy-and-paste view <http://127.0.0.1:8000/#>
>
>-
>
> /home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/core/handlers/base.pyin
>get_response
>1.
>
>   response = callback(request, *callback_args, 
> **callback_kwargs)
>
>   ...
> ▶ Local vars <http://127.0.0.1:8000/#>
>- /home/avin/learnt/lrntkr/views.py in index
>1.
>
>   return render_to_response('homepage/index.html', 
> ctx,context_instance=RequestContext(request))
>
>   ...
> ▶ Local vars <http://127.0.0.1:8000/#>
>-
>
> /home/avin/.virtualenvs/DJ/local/lib/python2.7/site-packages/django/shortcuts/__init__.pyin
>render_to_response
>1.
>
>   return HttpResponse(loader.render_to_string(*args, **kwargs), 
> **httpresponse_kwargs)
>
>   ...
> ▶ Local vars <

Re: couldn't render a media image via a template

2013-04-06 Thread Avnesh Shakya
try it..

create one more folder media and put that media folder inside this new
folder
and  then run..

regards,
Avnesh Shakya

On Sat, Apr 6, 2013 at 4:11 PM, Fatih Tiryakioglu wrote:

> I want to render an image via a template, but the template can't show
> image, but only a small image symbol..
>
> My settings:
>
> MEDIA_ROOT = '/home/mehmet/internet_**projeleri/site4ust/site4/**media'
> MEDIA_URL = '/media/'
> STATIC_ROOT = ' '
> STATIC_URL = '/unnamed/'
>
> I have a template in 
> '/home/mehmet/internet_**projeleri/site4ust/site4/**templatelerim',
> which has the following line:
> 
>
> I also added last pattern to the .../site4/urls.py:
>
> urlpatterns = patterns(' ',
>  url(r'^giris/$', 'unnamed.views.giris'),
>  url(r'^anasayfa/$', 'unnamed.views.anasayfa'),
>  url(r'^upload/$', 'unnamed.views.dosya_yukle'),
>  url(r'^media/(?P.*)$', 'django.views.static.serve',
> {'document_root': settings.MEDIA_ROOT}),
> )
>
> What is the problem..
>
>
>
>
> On Saturday, April 6, 2013 1:27:54 PM UTC+3, Fatih Tiryakioglu wrote:
>>
>> > src="/home/mehmet/internet_**projeleri/site4ust/unnamed/**60830071673353216"
>> />
>>
>> And in the settings:
>>
>> MEDIA_ROOT = '/home/mehmet/internet_**projeleri/site4ust/site4/**media'
>> MEDIA_URL = '/media/'
>> STATIC_ROOT = ' '
>> STATIC_URL = '/static/'
>>
>> I have a template in 
>> '/home/mehmet/internet_**projeleri/site4ust/site4/**templatelerim',
>> which has the following line:
>>  To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: djano user registration form and login(full example)

2013-04-16 Thread Avnesh Shakya
This error is occur when you're saving the member, not the user. When
creating the member, you are not assigning the user.


On Wed, Apr 17, 2013 at 10:45 AM, sachin  wrote:

> I m still stuck with
>
> Exception Type: IntegrityError
> Exception Value: column user_id is not unique
>
> Whenever I try to save, it throws the above error.
>
> I have attached files for reference, can someone help ??
>
>
>
> On Saturday, April 6, 2013 7:07:32 PM UTC+5:30, sachin wrote:
>>
>> Thanx Shawn,
>> *
>> *
>> UserCreationForm really helped.
>>
>> Now I have a different problem, I'm trying to add custom feilds to *auth
>> user *using 
>> storing-additional-**information-about-users
>> .
>> But now I m getting this error.
>>
>> Exception Type:IntegrityErrorException Value:
>>
>> column user_id is not unique
>>
>>
>>
>> This is my *models.py *file:
>> *
>> *
>> from django.db import models
>> from django.contrib.auth.models import User
>> from django.db.models.signals import post_save
>>
>> class UserProfile(models.Model):
>> user = models.OneToOneField(User)
>> sr_no = models.CharField(max_length=**10)
>>
>> def __unicode__(self):
>> return self.sr_no
>>
>> def create_user_profile(sender, instance, created, **kwargs):
>> if created:
>> UserProfile.objects.create(**user=instance)
>>
>> post_save.connect(create_user_**profile, sender=User)
>>
>> I have added *unique *field, but it does not make any difference. So far
>> I haven't got
>> any convincing answer.
>>
>> Any Idea ??
>> On Tuesday, April 2, 2013 12:49:52 AM UTC+5:30, Shawn Milochik wrote:
>>>
>>> Don't even worry about factories. They're for when you want a bunch of
>>> forms for the same model on the page at once.
>>>
>>> Use the UserCreationForm in django.contrib.auth.forms. It only accepts
>>> a username and password, so you can either subclass it to add the
>>> fields or make your own form and add it to your view so that they both
>>> appear in the same HTML form. You can validate both and do what you
>>> need to do.
>>>
>>> You definitely shouldn't be writing validation logic for the password
>>> and username and such -- that's what ModelForms are for.
>>>
>>> If you have more specific questions just ask.
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to fatch data from mysql database using jQuery in my django project?

2013-04-17 Thread Avnesh Shakya
hi,
please tell me someone, I want to fetch data dynamically using jquery 
from database.. how it is possible, give me a example... please help me, i 
need it in my project.
   Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to get called function automatically inside views.py?

2013-05-02 Thread Avnesh Shakya

hi,
I am creating a function inside the views.py, I want to call this 
function automatically according to timing which i m using through 
apscheduler. how is it possible, please tell me.
my views.py file
# Create your views here.
import simplejson as json
from apps.learning.models import CourseCategory
import sys
from apscheduler.scheduler import Scheduler
import tkMessageBox

 
sched = Scheduler() 
sched.start()


def JsontoMySQL():
category_json_data = json.load(open('DataCategory.json','r'))
tkMessageBox.showinfo(title="Greetings", message="Hello World!")
category = CourseCategory()
for i in range(0,len(category_json_data)-1):
cats_id = category_json_data[i]['cats_id']
cats_name = category_json_data[i]['cats_name']
cats_short_name = category_json_data[i]['cats_shortname']
category = CourseCategory(cats_id=cats_id, cats_name=cats_name, 
cats_short_name=cats_short_name)
category.save()

def job_function(): 
JsontoMySQL()
 
sched.add_cron_job(job_function, month='1-12', day='1-31', 
hour='0-23',minute='34-36')


Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




css and js in working in my project.

2013-05-03 Thread Avnesh Shakya
hi,
css and js file in not working in my project, please tell me about it, 
I am unable to get problem.

my project is learnt.

learnt > apps > lrntkr(my app) > models.py and views.py.
learnt > learnt >  settings.py and urls.py and wsgi.py.
learnt > static > javascripts and stylesheet and other.
learnt > templates > base.html and homepage > index.html

settings.py, base.html and index.html file, I m adding here.   please help 
me..

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




  



	
	{% block header %} {% endblock %}
	{%block navi%}{%endblock%}
	{%block content%}{%endblock%}
	{%block footer%}{%endblock%}
	
	
  
  
  
  
  



# Django settings for learnt project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)

MANAGERS = ADMINS

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'learning',  # Or path to database file if using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for localhost. Not used with sqlite3.
'PORT': '',  # Set to empty string for default. Not used with sqlite3.
}
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'Asia/Kolkata'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1
PROJECT_PATH=os.path.dirname(os.path.abspath(__file__))
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale.
USE_L10N = True

# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True

# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/home/media/media.lawrence.com/media/"
MEDIA_ROOT = '/home/avin/learnt-8/logos/'

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/";, "http://example.com/media/";
MEDIA_URL = '/logos/'

# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = ''

# URL prefix for static files.
# Example: "http://media.lawrence.com/static/";
STATIC_URL = '/static/'

# Additional locations of static files
PROJECT_PATH=os.path.dirname(os.path.abspath(__file__))
STATICFILES_DIRS = ( 
os.path.join(PROJECT_PATH, 'static/'),
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

# Make this unique, and don't share it with anybody.
SECRET_KEY = '9&l@kup_@6ome%$bl3(4x*-4e_!s1-q1q8*wlh-7f-1f@lz*j1'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'learnt.urls'

# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'learnt.wsgi.application'

T

Re: how to get called function automatically inside views.py?

2013-05-03 Thread Avnesh Shakya
hi, please tell me. it's urgent.

On Thursday, May 2, 2013 7:01:33 PM UTC+5:30, Avnesh Shakya wrote:
>
>
> hi,
> I am creating a function inside the views.py, I want to call this 
> function automatically according to timing which i m using through 
> apscheduler. how is it possible, please tell me.
> my views.py file
> # Create your views here.
> import simplejson as json
> from apps.learning.models import CourseCategory
> import sys
> from apscheduler.scheduler import Scheduler
> import tkMessageBox
>
>  
> sched = Scheduler() 
> sched.start()
>
>
> def JsontoMySQL():
> category_json_data = json.load(open('DataCategory.json','r'))
> tkMessageBox.showinfo(title="Greetings", message="Hello World!")
> category = CourseCategory()
> for i in range(0,len(category_json_data)-1):
> cats_id = category_json_data[i]['cats_id']
> cats_name = category_json_data[i]['cats_name']
> cats_short_name = category_json_data[i]['cats_shortname']
> category = CourseCategory(cats_id=cats_id, cats_name=cats_name, 
> cats_short_name=cats_short_name)
> category.save()
> 
> def job_function(): 
> JsontoMySQL()
>  
> sched.add_cron_job(job_function, month='1-12', day='1-31', 
> hour='0-23',minute='34-36')
>
>
> Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to get called function automatically inside views.py?

2013-05-03 Thread Avnesh Shakya
thanks but if i want to get a function called autometically, when i run
127.0.0.1:8000/  which defined inside views.py. how is it possible.


On Fri, May 3, 2013 at 4:00 PM, Tom Evans  wrote:

> On Fri, May 3, 2013 at 11:04 AM, Avnesh Shakya 
> wrote:
> > hi, please tell me. it's urgent.
> >
>
> "its urgent".
>
> Sorry, couldn't resist. As this seems to have nothing to do with
> django, and a lot to do with "apscheduler", perhaps you should ask the
> apscheduler folks instead?
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-08 Thread Avnesh Shakya
hi,
I am facing error - 
MultiValueDictKeyError at /profilesetting/ramuss

"Key 'name' not found in "

I am trying to upload image using dynamically(using javascript), 
but when I click on upload button after selecting image, it's showing this 
error.

my html page contain-

{% block scriptquery %}

function donefunction()
{
 visibility='hidden';
return true;
}
};

{% endblock %}
{% block rightcontent %}
  
Update Image

  
  
  {% csrf_token %}
   
   

   
  
{% endblock %}

views.py page -  
def profilesetting(request,uname):
user=User.objects.get(username=uname)
bag=Bag.objects.filter(creator=user.username)
if request.method=='POST':
user.name=request.POST['name']
user.email=request.POST['email']
if request.POST['phone']!="":
  user.phone=request.POST['phone']
user.about=request.POST['about']
user.website=request.POST['website']
user.location=request.POST['location']
user.save()
return 
render_to_response('profilesetting.html',{'user':user,'bag':bag},context_instance=RequestContext(request))

models.py -- 

from thumbs import ImageWithThumbsField
from django.db import IntegrityError
from django.db import models
import datetime

class User(models.Model):

username  = models.CharField(max_length=65, primary_key=True)
name  = models.CharField(max_length=64)
dob   = models.DateField()
gender_choices= (('m','male'),('f','female'))
gender= 
models.CharField(max_length=1,choices=gender_choices)
email = models.EmailField(verbose_name='your e-mail')
permission= 
models.DecimalField(max_digits=3,decimal_places=0,blank=True, null=True)
password  = models.CharField(max_length=32)
phone = models.DecimalField(max_digits=11,decimal_places=0, 
blank=True, null=True)
pic   = ImageWithThumbsField(upload_to='images',blank=True, 
null=True)
about = models.TextField()
profile_view  = models.DecimalField(max_digits=8,decimal_places=0, 
null=True)
location  = models.TextField()
website   = models.URLField(max_length=64,blank=True, null=True)
reputation= models.DecimalField(max_digits=8,decimal_places=0)
doj   = models.DateField(auto_now_add=True)
def __str__(self):
#return 
(self.name,self.dob,self.email,self.about,self.profile_view,self.location,self.website,self.tags,self.num_of_que_asked,self.num_of_que_answered,self.doj)
return (self.name)
def reg(self):
return (self.name,self.username)
def save(self,*args, **kw):
super(User,self).save(*args, **kw)
class Admin:
pass


please help me, I am unable to solve this problem.

thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-09 Thread Avnesh Shakya
Thanks, but I am using two form in my single template, so how will it
possible to create views for both form for post method.


On Thu, May 9, 2013 at 2:08 PM, Babatunde Akinyanmi wrote:

> Hi Avnesh,
> Your form has only one input with name as "pic" but in your view you are
> checking the QueryDict for six keys and none of them is even named "pic".
>
> meanwhile, I see that you are trying to upload a file, so you might want
> to read https://docs.djangoproject.com/en/dev/topics/http/file-uploads/before 
> you proceed
>
> Sent from my Windows Phone
> --
> From: Avnesh Shakya
> Sent: 5/9/2013 5:31 AM
> To: django-users@googlegroups.com
> Subject: error - MultiValueDictKeyError at /profilesetting/ramuss
>
> hi,
> I am facing error -
> MultiValueDictKeyError at /profilesetting/ramuss
>
> "Key 'name' not found in "
>
> I am trying to upload image using dynamically(using javascript),
> but when I click on upload button after selecting image, it's showing this 
> error.
>
> my html page contain-
>
> {% block scriptquery %}
>
> 
> function donefunction()
> {
>  visibility='hidden';
> return true;
> }
> };
> 
> {% endblock %}
> {% block rightcontent %}
>style="width:210px;height:180px;margin-left:2em;margin-top:.50em;margin-bottom:.25em;padding:5px;border-color:#d9d9d9;border-width:3px;border-style:
>  solid;">
>
>  onclick="{uploadimage.style.visibility='visible'}">Update Image
> 
>
>   
>style="position:absolute;height:150px;width:350px;visibility:hidden;margin-left:.50em;background-color:#f1f1f1;paddin:5px;border-width:1px;">
>   {% csrf_token %}
>
>
>
>  style="margin-top:30px;" onclick="return donefunction()">
>
>
>   
> {% endblock %}
>
> views.py page -
> def profilesetting(request,uname):
> user=User.objects.get(username=uname)
> bag=Bag.objects.filter(creator=user.username)
> if request.method=='POST':
>   user.name=request.POST['name']
>   user.email=request.POST['email']
>   if request.POST['phone']!="":
> user.phone=request.POST['phone']
>   user.about=request.POST['about']
>   user.website=request.POST['website']
>   user.location=request.POST['location']
>   user.save()
> return 
> render_to_response('profilesetting.html',{'user':user,'bag':bag},context_instance=RequestContext(request))
>
> models.py --
>
> from thumbs import ImageWithThumbsField
> from django.db import IntegrityError
> from django.db import models
> import datetime
>
> class User(models.Model):
>   
>   username  = models.CharField(max_length=65, primary_key=True)
>   name  = models.CharField(max_length=64)
>   dob   = models.DateField()
>   gender_choices= (('m','male'),('f','female'))
>   gender= 
> models.CharField(max_length=1,choices=gender_choices)
>   email = models.EmailField(verbose_name='your e-mail')
>   permission= 
> models.DecimalField(max_digits=3,decimal_places=0,blank=True, null=True)
>   password  = models.CharField(max_length=32)
>   phone = models.DecimalField(max_digits=11,decimal_places=0, 
> blank=True, null=True)
>   pic   = ImageWithThumbsField(upload_to='images',blank=True, 
> null=True)
>   about = models.TextField()
>   profile_view  = models.DecimalField(max_digits=8,decimal_places=0, 
> null=True)
>   location  = models.TextField()
>   website   = models.URLField(max_length=64,blank=True, null=True)
>   reputation= models.DecimalField(max_digits=8,decimal_places=0)
>   doj   = models.DateField(auto_now_add=True)
>   def __str__(self):
>   #return 
> (self.name,self.dob,self.email,self.about,self.profile_view,self.location,self.website,self.tags,self.num_of_que_asked,self.num_of_que_answered,self.doj)
>   return (self.name)
>   def reg(self):
>   return (self.name,self.username)
>   def save(self,*args, **kw):
>   super(User,self).save(*args, **kw)
>   class Admin:
>   pass
>
>
> please help me, I am unable to solve this problem.
>
> thanks.
>
>  --
> You received this message because you are subscribed to the Google Groups
>

problem with inserting data through sqlite manually.

2013-05-10 Thread Avnesh Shakya
Hi, 
 I am inserting data into my models using sqlite3 manually, but it's 
not storing without id, it's generating error,  this Id is generated 
automatically in django. how is it possible that i can store data without 
taking id value. please help me out.

thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




error in AUTHENTICATION using socialregistration

2013-05-16 Thread Avnesh Shakya
hi,
   I am getting error -  
  
  NoReverseMatch at /login/ 

   u'facebook' is not a registered namespace inside 'socialregistration'

when I am clicking on login link. I have installed all required things using 
documantation - 
   
http://django-socialregistration.readthedocs.org/en/latest/contrib/facebook.html
but it's showing error.
Please help me... I am unable to find this error.

settings.py- i have added-
INSTALLED_APPS = (
'apps.socialregistration',
'apps.socialregistration.contrib.facebook',
)

and
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'apps.socialregistration.contrib.facebook.auth.FacebookAuth',
)

FACEBOOK_APP_ID = '278691145597349'
FACEBOOK_SECRET_KEY = '359ed87e4cc3b3cdf2e567f7ab043d8c'

and in login.html page
i have added-
{% load facebook %}
{% facebook_button %}

thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to create google app for login in django project?

2013-05-17 Thread Avnesh Shakya
hi,
I want to create login button in my django login page, so i have to 
create app first for creating button, but i am unable to create app in 
google. how to create google app for login, please tell me about, and link, 
so that i can create app in google for authentication.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django setting.py issue

2013-05-19 Thread Avnesh Shakya
Hi,
 First set your databasename in settings.py file
   'Name': 'db'
then try it. hopefully it will be helpful.
regards,
Avnesh


On Mon, May 20, 2013 at 11:44 AM, Sun Simon  wrote:

> *Basic Facts:*
> OS: Windows
> Python version: 2.7
> Django Version: Instant Django(
> https://groups.google.com/forum/?fromgroups#!topic/django-users/WLA0ziqbwpg)
> .
>
> I have Django installed using Instant Django and everything is fine until
> I beging to fiddle with database settings. Here is what my setting.py looks
> like:
>
>
> 
>
>
>
>
>
>
> And when I type in python manage.py syncdb in cmd and here is what I get:
>
>
> 
>
>
>
>
>
>
>
>
>
>
> What is wrong here and can someone help with this?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: IDE django with perforce

2013-05-29 Thread Avnesh Shakya
Try Pycharm, but use always eclipse. eclipse is better than it.
Regards,
Avnesh Shakya


On Thu, May 30, 2013 at 10:53 AM, Aswani Kumar  wrote:

> hi guys,
>
> we are having problem with eclipse 3.8 with pydev perforce plugins on
> ubuntu 13.04
>
> *problem :* after using for few days or unexpected shutdown, eclipse
> stops working i mean opening.
>
> we need perforce with django, can any one tell me whats the best ide for
> django with integrated perforce plugin.
>
> any online step by step tutorial will do good.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.