How to display file extension in django template ?

2014-02-07 Thread Ashish Tiwari
It's a simple question but i'm not able to find easily. 
How can I display the file extension of uploaded file in template ?

ex : uploaded-filename.jpeg
  {{file.}} will display "jpeg" in template.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9a7a3883-f164-4997-bab7-f5828b8771a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Admin User registration problem...

2011-06-16 Thread ashish tiwari
thank you...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/T4B46pv50HwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Admin User registration problem...

2011-06-16 Thread ashish tiwari
hi friends,
i developed an application in django-nonrel with appengine.
i'm using django forms for user registration.

forms.py

class RegistrationForm(forms.Form):
username=forms.CharField(label=u'Username',max_length=30)
email=forms.CharField(label=u'Email')
is_staff=forms.BooleanField(label=u'is staff')

password1=forms.CharField(label=u'Password',widget=forms.PasswordInput())

password2=forms.CharField(label=u'Password(Again)',widget=forms.PasswordInput())

views.py

def register_page(request):
if request.method=='POST':
form = RegistrationForm(request.POST)
if form.is_valid():
user=User.objects.create_user(
username=form.cleaned_data['username'],
password=form.cleaned_data['password1'],
email=form.cleaned_data['email'],
is_staff=form.cleaned_data['is_staff'],
)
return HttpResponseRedirect('/')
else:
form=RegistrationForm()
variables=RequestContext(request,{'form':form})
return 
render_to_response('interview/registration/register.html',variables)

register.html
~

{{ form.as_p }}


when i try to register,it throws an error .. 
"create_user() got an unexpected keyword argument 'is_staff'" 
i want to create superuser(administrator) on registration is there 
anything m doing wrong? Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/4HkVMVqNkJwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



how to configure mongoDB in Django?

2011-04-29 Thread ashish tiwari
Hey friends,
i used Django with Sqlite3,
I'm thinking about to use MongoDB as backend.
but i don't no how to configure it,
and which packages need to configure mongoDB in Django?

Best Regards
--ashish

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



dump data using json

2009-08-21 Thread ashish tiwari
hi Friends

i heared about the json format
django provided utility of dumpdata, loaddata which dumps and loads data in
json format.

but i dont know,how to use it..

i want to dumpdata...from my app

name of  iFriends
name of  People

iFriends>People>models.py

class Person.

class Item

so i want to dump all data which is present in class "Person"
 how can i "dumpdata"  from my app "class Person " in   " .json "   fromat
and  "loaddata"


thank you...


-
ashish

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



ashish tiwari wants to chat

2009-05-29 Thread ashish tiwari

---

ashish tiwari wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d1daa37620-00464c385d-2a1eb8c3350f9891
You'll need to click this link to be able to chat with ashish tiwari.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with ashish tiwari, visit:
http://mail.google.com/mail/a-d1daa37620-00464c385d-2a1eb8c3350f9891

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



Re: Problem with performance on a django site

2009-05-29 Thread ashish tiwari
Thanks

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



Re: Problem with performance on a django site

2009-05-29 Thread ashish tiwari
i m ashish,
i m new for django...

i have a problem

how can i delete my table from database using SQLite3
how can i get the db file on command shell of sqlite...
how can i drop the table.

please give me the answer...
from novice.



thank you.

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



ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari

---

ashish tiwari wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d1daa37620-797e12f2ba-bbc006273b9d2d26
You'll need to click this link to be able to chat with ashish tiwari.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with ashish tiwari, visit:
http://mail.google.com/mail/a-d1daa37620-797e12f2ba-bbc006273b9d2d26

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari

---

ashish tiwari wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d1daa37620-dc0367129f-044c014942754058
You'll need to click this link to be able to chat with ashish tiwari.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with ashish tiwari, visit:
http://mail.google.com/mail/a-d1daa37620-dc0367129f-044c014942754058

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



ashish tiwari wants to chat

2009-05-23 Thread ashish tiwari

---

ashish tiwari wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-d1daa37620-3180f48683-516d3374db6ca61b
You'll need to click this link to be able to chat with ashish tiwari.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with ashish tiwari, visit:
http://mail.google.com/mail/a-d1daa37620-3180f48683-516d3374db6ca61b

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

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



how to delete table from database?

2009-05-23 Thread ashish tiwari
i create the tables in models.py

i have the problem to delete table from databasei m using SQLITE3
any one give me the code to how delete the table from database...

thanks

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



Re: password_change - specify minimum password length

2009-05-22 Thread ashish tiwari
>
> hey sum time i get the problem when i use django


the problem is my DATABASE is getting locked...
what is this .i dont know

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