computers-programming

2008-11-14 Thread sri

Related Categories: Computers > Programming > Compilers (269)
Computers > Programming > Education (83) Computers > Programming >
Methodologies (630) ...
===

http://www.freewebs.com/olympicpen/
http://indianfriendfinder.com/go/g1036092-pmem
http://italianfriendfinder.com/go/g1036092-pmem

===

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Extending django.contrib.auth.models.User

2009-11-08 Thread Sri

Folks,

   Thought I might put it out there.  I mean technically this is not
limited to django.  I need to extend the
django.contrib.auth.models.User class (adding an extra field, making
the email field unique and increasing the length of the username
field).

Now what are your thoughts on doing this?  Changes are clearly very
small and extending what is there so they will not break the existing
classes and apps (or other django apps out there) so I dont mind
putting these changes to each version of django I use.

I am not happy with doing this but I cant see a way around it.  Adding
another model class with these extensions just means that existing
apps wont take advantage of this.  Ideally I would like to see all
apps and methods out there take the class variable that refers to the
User model to be used so one could simply pass that in (say in
settings.py) and it could even default to User model in
django.contrib.auth.

What are your thoughts?

cheers
Sri

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Build A Website For Free

2008-06-05 Thread sri

Build A Website For Free

Build Your own website without knowing HTML.Web Desining Software For
Free.


http://webhostlink.blogspot.com/

Low Cost Web Hosting Services

Cheapest Indian Domains .COM,.NET,.ORG and .INFO Are Available @ Rs
310/-P.a.300 GB

Storage,3000GB data Transfer.Instant Setup.For More Info...


http://webhostlinker.blogspot.com/


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Drop down menu

2012-10-09 Thread sri
Hi,

I am new to Django/Web development and i am trying to create a drop down 
menu in my sample website and got stuck about the best way to develop it.

My idea is to have a drop down of the city names on the homepage. City 
Names can be selected from the model character field having choices.

The model looks like below :

   CITY_NAMES = (
(u'L', u'London'),
(u'NU', u'Newcastle Upon Tyne'),
(u'M', u'Manchester'),
)
 
class samplemodel(models.Model):
city_names = models.CharField(max_length =2, choices = 
CITY_NAMES,default = 'L')

And my URL file looks like below.

url(r'^(?P\c+)/', 'cityhomepage'),
url(r'^$', 'cityhomepage')

And my views looks like below 

def cityhomepage(request, city_name = 'London'):
  /** do something **/

>From the drop down when user selects a specific city, then i want to call 
the view "cityhomepage" by passing the city_name selected by the user as 
argument.

Could you please suggest, what i need to write in my templates or forms.py 
files to get the outcome.  

Thanks
Sreekanth

-- 
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/-/E5n-baE-Zc0J.
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: Drop down menu

2012-10-10 Thread sri
Hi,

Thanks for your responses.

I am looking to develop the drop down like a select box.

I will read the documentation that Cal has pointed to and hopefully i 
should be able to work it.

Thanks
Sreekanth

On Wednesday, 10 October 2012 13:13:37 UTC+1, jessoclarence wrote:
>
> Sreekanth,
>
> Do you want a select box in a form, or hyperlinks in a navigation menu?
>
> The previous reply from Cal describes the first scenario.
>
> For the second case - generating hyperlinks in the navigation menu,
> you need to do the following,
>
> * In your views function you need to pass the list containing the city 
> names
> in render_to_response
> * In your template file you can do something like,
>
> <% for city in city_list %>
>  {{city}}
> <% endfor %>
>
> in whatever area of the page you want. Dropdown effect needs to be 
> achieved using 
> CSS and javascript.
>
> - Jesso
>

-- 
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/-/zBbIcIbqu0AJ.
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.



ImportError: Could not import settings

2012-10-20 Thread sri
Hi,

I am trying to develop an sample project in Django and getting errors when 
i run syncdb command.

This is how my project structure looks like:

/Users/Sreek/django_demo/godjango/bookings:
  
   manage.py
   registration/
 forms.py
 views.py
 models.py
 urls.py
   bookings/
 settings.py
 urls.py

And my manage.py file looks like below :

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bookings.settings")
from django.core.management import execute_from_command_line
 execute_from_command_line(sys.argv)

And my PYTHONPATH and DJANGO_SETTINGS_MODULE are set as below

$echo $DJANGO_SETTINGS_MODULE
bookings.settings

$ echo $PYTHONPATH
/Users/Sreek/django_demo/godjango/bookings

And my WSGI.py file looks like below:

  import os
 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bookings.settings")
 from django.core.wsgi import get_wsgi_application
 application = get_wsgi_application()


But when i run the python manage.py syncdb command, i am getting the 
following error.

Traceback (most recent call last):
  File "manage.py", line 11, in 
execute_from_command_line(sys.argv)
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 443, in execute_from_command_line
utility.execute()
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/__init__.py",
 
line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/utils/importlib.py",
 
line 35, in import_module
__import__(name)
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
 
line 8, in 
from django.core.management.sql import custom_sql_for_model, 
emit_post_sync_signal
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/core/management/sql.py",
 
line 6, in 
from django.db import models
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/db/__init__.py",
 
line 11, in 
if DEFAULT_DB_ALIAS not in settings.DATABASES:
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/utils/functional.py",
 
line 184, in inner
self._setup()
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/conf/__init__.py",
 
line 42, in _setup
self._wrapped = Settings(settings_module)
  File 
"/Users/Sreekanth/django_demo/godjango/lib/python2.7/site-packages/django/conf/__init__.py",
 
line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): 
%s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'bookings.settings' (Is it on 
sys.path?): No module named unipath



Could someone suggest what i am missing?  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/-/evZ8yLHpyrAJ.
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: ImportError: Could not import settings

2012-10-20 Thread sri
Hi Tom,

Thanks very much.That solved the problem after removing that import.

Sreekanth

On Saturday, 20 October 2012 12:05:41 UTC+1, Tomáš Ehrlich wrote:
>
> Hello, 
> there's a little hint at the end of exception: 
>
> > No module named unipath 
>
> Seems like you import module unipath in your settings.py, which is not 
> on your sys.path. 
>
> I never set PYTHONPATH for development and everything works fine. 
> Python adds current directory to sys.path, so when you run ./manage.py, 
> you don't need to set PYTHONPATH pointing to current working directory. 
>
> Check content of you sys.path. 
>
>
> Cheers, 
>  Tom 
>

-- 
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/-/yS6riKjMjJ0J.
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.



django + tinymce problems

2012-10-28 Thread sri
Hi,

I have tried using tinymce in my sample django application, but i am not 
getting the tinymce editor in my admin pages.

I am trying to setup tinymce to use in admin pages and using Django 1.4

This is how my settings.py file looks like

   MEDIA_ROOT = ' '
   MEDIA_URL = ' '
   STATIC_ROOT = ' '
   STATIC_URL = '/static/'
   TINYMCE_JS_URL = os.path.join(PROJECT_ROOT, 
"static/js/tiny_mce/tiny_mce.js")
   TINYMCE_DEFAULT_CONFIG = {
   'plugins': "table,spellchecker,paste,searchreplace",
   'theme': "advanced",
   'cleanup_on_startup': True,
   'custom_undo_redo_levels': 10,
   }
   TINYMCE_SPELLCHECKER = True
   TINYMCE_COMPRESSOR = True


And in my app, the models.py file looks like below

class place(models.Model):
place_description = models.TextField(max_length=5000)

And my admin.py field looks like below:

class PlaceDetailsAdmin(admin.ModelAdmin):
class Media:
   js = 
('/Users/Sreekanth/django_demo/godjango/sample/sample/static/js/tiny_mce/tiny_mce.js',
  
'/Users/Sreekanth/django_demo/godjango/sample/sample/static/js/textareas.js'
   )

And the tiny_mce is stored in the /static/js/ folder inside my project.

With the above settings, when i login to admin, i can not see any tinymce 
editor for place_description field.

Could someone please let me know what i am missing?

Thanks
Sreekanth

-- 
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/-/7-rfBYYoCpoJ.
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: django + tinymce problems

2012-10-29 Thread sri
Thanks for the reply Tom.

It worked after changing to relative paths.

Sreekanth

On Monday, 29 October 2012 11:13:17 UTC, Tom Evans wrote:
>
> On Sun, Oct 28, 2012 at 9:44 PM, sri > 
> wrote: 
> > Hi, 
> > 
> > I have tried using tinymce in my sample django application, but i am not 
> > getting the tinymce editor in my admin pages. 
> > 
> > I am trying to setup tinymce to use in admin pages and using Django 1.4 
> > 
> > This is how my settings.py file looks like 
> > 
> >MEDIA_ROOT = ' ' 
> >MEDIA_URL = ' ' 
> >STATIC_ROOT = ' ' 
> >STATIC_URL = '/static/' 
> >TINYMCE_JS_URL = os.path.join(PROJECT_ROOT, 
> > "static/js/tiny_mce/tiny_mce.js") 
> >TINYMCE_DEFAULT_CONFIG = { 
> >'plugins': "table,spellchecker,paste,searchreplace", 
> >'theme': "advanced", 
> >'cleanup_on_startup': True, 
> >'custom_undo_redo_levels': 10, 
> >} 
> >TINYMCE_SPELLCHECKER = True 
> >TINYMCE_COMPRESSOR = True 
> > 
> > 
> > And in my app, the models.py file looks like below 
> > 
> > class place(models.Model): 
> > place_description = models.TextField(max_length=5000) 
> > 
> > And my admin.py field looks like below: 
> > 
> > class PlaceDetailsAdmin(admin.ModelAdmin): 
> > class Media: 
> >js = 
> > 
> ('/Users/Sreekanth/django_demo/godjango/sample/sample/static/js/tiny_mce/tiny_mce.js',
>  
>
> > 
> > 
> '/Users/Sreekanth/django_demo/godjango/sample/sample/static/js/textareas.js' 
>
> >) 
>
> Paths in the Media class should be relative to your static URL, not 
> absolute file locations. 
>
>
> https://docs.djangoproject.com/en/1.4/ref/contrib/admin/#modeladmin-media-definitions
>  
> https://docs.djangoproject.com/en/1.4/topics/forms/media/#form-media-paths 
>
> Cheers 
>
> Tom 
>

-- 
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/-/QNeeuMz6MRYJ.
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.



django-registration customization

2012-12-12 Thread sri
Hi,

I am using django-registration 
(http://pypi.python.org/pypi/django-registration) app for my project and i 
have added an extra page which shows both login and registration forms 
together.

But on this new page, the validation for registration form does not work. 
It works if i display the page with only registration form. But if the page 
has both registration and login forms the validation does not work. 

i have added below to the urls.py

url(r'^login_register/$',   login_register,  name='login_register'),

And in views.py, i have added the following.

def login_register(request, form_class=RegistrationForm, 
profile_callback=None):

if request.method == 'POST':

if 'login_button' in request.POST:
new_user = authenticate(username=request.POST['username'],
password=request.POST['password'])

if new_user is not None:
if new_user.is_active:
login(request, new_user)
else:
state = "Your username and/or password were incorrect."
form = RegistrationForm()
return 
render_to_response('registration/register_login.html',
 {'registerform': form,
 'login_state': state},
  context_instance=RequestContext(request))

return HttpResponseRedirect(request.GET.get("next"))

elif 'register_button' in request.POST:
form = RegistrationForm(data=request.POST, files=request.FILES)

if form.is_valid():
new_user = form.save(profile_callback=profile_callback)
new_user = authenticate(username=request.POST['username'],
password=request.POST['password1'])
login(request, new_user)
return HttpResponseRedirect(request.GET.get("next"))
else:
return 
render_to_response('registration/register_login.html',
 {'registerform': form},
  context_instance=RequestContext(request))
else:
form = RegistrationForm()
return render_to_response('registration/register_login.html',
{'registerform': form},
context_instance=RequestContext(request))


And my template for register_login looks like below.

{% block main_content %}
  

   Existing Customer (Login) 
  {% if login_state %}

   *{{ login_state }}

  {% endif %}

  {% csrf_token %}

  Username*
  

  


  Password*
  

  


  
Sign 
in
  

  



   New Customer (Register for an Account) 
  {% if register_state %}

   *{{ register_state }}

  {% endif %}
  {% csrf_token %}

  Username*
  

  


  Email 
Address*
  

  


  Password*
  

  


  Password 
(again)*
  

  


  Phone. No 
(Optional)
  

  


  
Register
  

  


  
{% endblock %}

{% block sidebar %}{% endblock %}


Now, when i click on the register button on the page, the form validation 
does not work.
Let's say if i enter the username that already exists on the database, it 
is not reporting any errors. It is just displaying the form without any 
error messages.
Can anyone help with what i am missing?

Thanks

-- 
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/-/e5M2K9Yu1mIJ.
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: django-registration customization

2012-12-14 Thread sri
Hi Karen,

Thanks very much for your help. It's working now after i used the 
registrationfrom in the template.

Thanks

On Friday, 14 December 2012 02:34:24 UTC, Karen Tracey wrote:
>
> On Wed, Dec 12, 2012 at 3:36 PM, sri  >wrote:
>
>> Now, when i click on the register button on the page, the form validation 
>> does not work.
>> Let's say if i enter the username that already exists on the database, it 
>> is not reporting any errors. It is just displaying the form without any 
>> error messages.
>> Can anyone help with what i am missing?
>>
>
> Sounds like the form validation is working, since you are not getting 
> redirected to next page but rather the registration page is being 
> re-displayed. The form created in the view is where the validation errors 
> have been stored, and that form thus needs to be used by the template for 
> rendering the errors. However, the template you show is not using the 
> registerform that is being passed in the context from the view, it just has 
> all the fields hard-coded. You'll need to use the registerform to render 
> the form validation errors, since that is where they've been stored. See:
>
>
> https://docs.djangoproject.com/en/1.4/topics/forms/#displaying-a-form-using-a-template
>
> Karen
> -- 
> http://tracey.org/kmt/
>
>

-- 
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/-/gI687IeP8_gJ.
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.



Django comments app customization

2012-12-21 Thread sri


Hi, I am trying to customise the comments app by adding a rating field 
using django-ratings and jquery-star. 

But when i try to post a comment, i am getting below error.


Traceback: File 
"/Users/django*demo/godjango/lib/python2.7/site-packages/django/core/handlers/base.py"
 
in get_response 111. response = callback(request, callback_args, 
*callback_kwargs) 
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapped_view 91. response = view_func(request, args, *kwargs) File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/views/decorators/http.py"
 
in inner 41. return func(request, args, *kwargs) File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/views/comments.py"
 
in post_comment 109. comment = form.get_comment_object() File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/forms.py"
 
in get_comment_object 115. new = 
CommentModel(**self.get_comment_create_data()) File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/db/models/base.py"
 
in __init*_ 367. raise TypeError("'%s' is an invalid keyword argument for 
this function" % kwargs.keys()[0])

Exception Type: TypeError at /comments/post/ Exception Value: *'rating'* is 
an invalid keyword argument for this function


I am following the instructions mentioned in 
http://www.azavea.com/blogs/labs/2011/04/jquery-star-rating-with-django-ratings/
 and https://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/


I have pasted my code in https://gist.github.com/4347324. 

__init__.py in my comments app looks like 
this https://gist.github.com/4347324#file-__init__-py

models.py in my comments app looks like 
this https://gist.github.com/4347324#file-models-py

forms.py in my comments app looks like 
this https://gist.github.com/4347324#file-forms-py

widgets.py in comments app looks like 
this...https://gist.github.com/4347324#file-widgets-py


and i have two template files to display the comments in my 
templates/comments folder, which looks like below

https://gist.github.com/4347324#file-form-html

https://gist.github.com/4347324#file-list-html


Can anyone help solving this issue ?

Thanks

-- 
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/-/ak6So4Ay7W4J.
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.



comments app customisation failure

2012-12-21 Thread sri
Hi,

I am trying to customise the comments app by adding rating field.
i am using django-ratings along with jquery-star.
I have followed the instructions mentioned in 
http://www.azavea.com/blogs/labs/2011/04/jquery-star-rating-with-django-ratings/
 but 
i am getting an error when i try to post the comment.
Below is the error i am getting

Traceback:
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/core/handlers/base.py"
 
in get_response
  111. response = callback(request, *callback_args, 
**callback_kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/utils/decorators.py"
 
in _wrapped_view
  91. response = view_func(request, *args, **kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/views/decorators/http.py"
 
in inner
  41. return func(request, *args, **kwargs)
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/views/comments.py"
 
in post_comment
  109. comment = form.get_comment_object()
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/contrib/comments/forms.py"
 
in get_comment_object
  115. new = CommentModel(**self.get_comment_create_data())
File 
"/Users/django_demo/godjango/lib/python2.7/site-packages/django/db/models/base.py"
 
in __init__
  367. raise TypeError("'%s' is an invalid keyword argument 
for this function" % kwargs.keys()[0])

Exception Type: TypeError at /comments/post/
Exception Value:* 'rating' is an invalid keyword argument for this function*

I have copied my code in here https://gist.github.com/4347324

Can anyone help with this?

Thanks
Sri

-- 
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/-/rAHbChP2TKYJ.
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.



django ratings problem

2012-12-24 Thread sri


Hi, 


I am trying to add django-ratings to my app and it keeps falling over when 
i try to add a rating. The steps i have followed is below 

1) pip install django-ratings 

2) Add 'djangoratings' to my settings.py 

3) Add a field in my model class with field name "cust_rating = 
RatingField(range=5)"


Now when i try to add a rating by adding the below line, system is throwing 
an error.


mymodel.cust_rating.add(score=int(4), user=request.user, 
ip_address=request.META['REMOTE_ADDR'])


Can anyone help with what i am missing?


Thanks

-- 
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/-/pKSm3PwVFkEJ.
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: django ratings problem

2012-12-25 Thread sri
Hi,

the issue has been resolved now.
The primary key for my model was a CharField and it was giving error 
because of that.
Once i changed my primary key to an IntergerField, it all worked fine.

https://github.com/dcramer/django-ratings/issues/14

Thanks

On Tuesday, 25 December 2012 06:27:14 UTC, Ryan Blunden wrote:
>
> Can you share the error and the stack trace at http://pastie.org/.
>
> Sharing environmental information such as OS, Python version, Django 
> version, reported django-ratings app version is also critical in helping 
> your figure out what the issue is.
>
> Cheers,
> Ryan
>
> On Monday, December 24, 2012 10:35:44 AM UTC-8, sri wrote:
>>
>> Hi, 
>>
>>
>> I am trying to add django-ratings to my app and it keeps falling over 
>> when i try to add a rating. The steps i have followed is below 
>>
>> 1) pip install django-ratings 
>>
>> 2) Add 'djangoratings' to my settings.py 
>>
>> 3) Add a field in my model class with field name "cust_rating = 
>> RatingField(range=5)"
>>
>>
>> Now when i try to add a rating by adding the below line, system is 
>> throwing an error.
>>
>>
>> mymodel.cust_rating.add(score=int(4), user=request.user, 
>> ip_address=request.META['REMOTE_ADDR'])
>>
>>
>> Can anyone help with what i am missing?
>>
>>
>> Thanks
>>
>

-- 
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/-/Sb6ziQCLRWMJ.
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.



Django comments customization issue

2012-12-26 Thread sri


Hi, I am trying to learn django comments customization by adding an integer 
field to the comments framework. My Model looks like below

class CommentWithRating(Comment): rating = 
models.IntegerField(name='rating')

And i am trying to display the value in the rating field by using the 
jquery star, but it is displaying all the stars in one comment. Please 
check the link to see how the comments are displayed. 
http://imgur.com/43CUU
 [1]

The code i am using in my template is as below.


{% load comments %}

 Add Your Comments Here / Rate : 
{% render_comment_form for party_details %}
{% get_comment_count for party_details as comment_count %}
  Customer Reviews( {{ comment_count }} comments have 
been posted.)

{% get_comment_list for party_details as comment_list %}
{% for comment in comment_list %}

Posted by: {{ comment.user_name }} on {{ 
comment.submit_date }}  Rating:

{% for i in loop_times %}
{% if i == comment.rating %}

{% else %}

{% endif %}
{% endfor %}
{{ comment.rating }}


Comment: {{ comment.comment }}

{% endfor %}


I am working on Django 1.4.1 version and 
http://www.fyneworks.com/jquery/star-rating/#tab-Overview[2] (for jquery 
stars). loop_times in the template is a range from 1 to 5, which is passed 
from the view.

Can anyone help with why the ratings are all displayed in one place when i 
use jquery star.

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/-/SzYM0O2tyl4J.
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: Django comments customization issue

2012-12-26 Thread sri
Hi donarb,

Thanks for your reply. It worked after changing the input tags names as you 
mentioned.

And also, thanks for mentioned about BR tags as well.

Thanks


On Wednesday, 26 December 2012 20:06:15 UTC, donarb wrote:
>
> On Wednesday, December 26, 2012 11:43:47 AM UTC-8, sri wrote:
>>
>> Hi, I am trying to learn django comments customization by adding an 
>> integer field to the comments framework. My Model looks like below
>>
>> class CommentWithRating(Comment): rating = 
>> models.IntegerField(name='rating')
>>
>> And i am trying to display the value in the rating field by using the 
>> jquery star, but it is displaying all the stars in one comment. Please 
>> check the link to see how the comments are displayed. 
>> http://imgur.com/43CUU <http://i.imgur.com/43CUU.jpg> [1]
>>
>> The code i am using in my template is as below.
>>
>> 
>> {% load comments %}
>> 
>>  Add Your Comments Here / Rate : 
>> {% render_comment_form for party_details %}
>> {% get_comment_count for party_details as comment_count %}
>>   Customer Reviews( {{ comment_count }} comments have 
>> been posted.)
>> 
>> {% get_comment_list for party_details as comment_list %}
>> {% for comment in comment_list %}
>> 
>> Posted by: {{ comment.user_name }} on {{ 
>> comment.submit_date }}  Rating: 
>>
>> 
>> {% for i in loop_times %}
>> {% if i == comment.rating %}
>> > class="star" checked="checked" disabled="disabled"/>
>> {% else %}
>> > class="star" disabled="disabled"/>
>> {% endif %}
>> {% endfor %}
>> {{ comment.rating }}
>> 
>> 
>> Comment: {{ comment.comment }}
>> 
>> {% endfor %}
>> 
>>
>> I am working on Django 1.4.1 version and 
>> http://www.fyneworks.com/jquery/star-rating/#tab-Overview[2] (for jquery 
>> stars). loop_times in the template is a range from 1 to 5, which is passed 
>> from the view.
>>
>> Can anyone help with why the ratings are all displayed in one place when 
>> i use jquery star.
>>
>> Thanks in advance.
>>
>
>
> It's most likely because your input items all have the same name 'star'. 
> You should use an index in the loop to make the names unique for each of 
> the comments. Something like:
>
> {% if i == comment.rating %}
>  class="star" checked=="checked" disabled="disabled"/>
> {% else %}
>  class="star" disabled="disabled"/>
> {% endif %}
>
> Note you have to use parentloop because your loop is nested.
>
> Also as an FYI, your 'br' tags are coded wrong, they should be ''.
>

-- 
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/-/NZICD7DewckJ.
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.



django login/registration validation error message issue

2013-03-11 Thread sri


Hi,

I am relatively new to Django and trying to create a Django application 
using 1.5 and created a pop up modal login and registration form using 
twitter bootstrap. The example i used to create the drop down 
login/registration form is
http://mifsud.me/adding-dropdown-login-form-bootstraps-navbar/[1] .Now, the 
problem i am having is that, how do i show any error messages (password 
invalid etc) on the pop up login/registration drop down modal box.

Here is my base.html file:


  
Login

{% csrf_token %}





  
  
Register

{% csrf_token %}
{{ register_form.non_field_errors }}






  

And my views.py looks like below for login and registration views:

def login_view(request):
  if request.method == 'POST':
 username = request.POST['email']
 password = request.POST['password']
 user = authenticate(username=username, password=password)
 if user is not None and user.is_active:
login(request, user)
return HttpResponseRedirect(request.GET.get("next"))
  else:
return  HttpResponseRedirect(reverse('homepage'))

def register_view(request):
   if request.method == 'POST':
  form = UserCreationForm(data=request.POST, files=request.FILES)
  if form.is_valid():
new_user = form.save()
new_user = authenticate(username=request.POST['username'],
password=request.POST['password1'])
login(request, new_user)
 return HttpResponseRedirect(request.GET.get("next"))
   else:
  return HttpResponseRedirect(reverse('homepage'))

def homepage(request):
   form = UserCreationForm()
   return render_to_response('base.html',
{
 'register_form': form},
   context_instance=RequestContext(request))

And my forms.py looks like below for registration:

 class UserCreationForm(forms.ModelForm):

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

   class Meta:
model = MyUser
fields = ('email',)

   def clean_password2(self):
# Check that the two password entries match
password1 = self.cleaned_data.get("password1")
password2 = self.cleaned_data.get("password2")
if password1 and password2 and password1 != password2:
raise forms.ValidationError("Passwords don't match")
return password2

   def save(self, commit=True):
# Save the provided password in hashed format
user = super(UserCreationForm, self).save(commit)
user.set_password(self.cleaned_data["password1"])
if commit:
user.save()
return user

Can anyone help me how i can pass the registration validation error 
messages into the drop down modal form and also the login password 
validation error messages. What i would like to do is displat the error 
message in the drop down login/registration box itself.

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 login/registration validation error message issue

2013-03-11 Thread sri
Hi Tom,

Thanks for pointing me to docs.
I am able to display the error message now.
But because the page is being refreshed, the drop down is not visisble at 
first. When i click the register button again, then i can see the error 
message. Is there anyway i can show the registration drop down if errors 
exists.
My code now looks like below.

Views.py :-

   def register_view(request):
if request.method == 'POST':
form = UserCreationForm(data=request.POST, files=request.FILES)
if form.is_valid():
new_user = form.save()
new_user = authenticate(username=request.POST['username'],
password=request.POST['password1'])
login(request, new_user)
return HttpResponseRedirect(request.GET.get("next"))
else:
item_list = 
CoolStuff.objects.filter(show_on_website=True).order_by('-item_rank')
column_1_items_list = item_list.filter(column=ONE)
column_2_items_list = item_list.filter(column=TWO)
column_3_items_list = item_list.filter(column=THREE)
return render_to_response('homepage.html',
{'column_1_items_list': column_1_items_list,
'column_2_items_list': column_2_items_list,
 'column_3_items_list': column_3_items_list,
'register_form': form},
context_instance=RequestContext(request))
else:
return HttpResponseRedirect(reverse('coolstuff.views.homepage'))


base.html has the following for registration form :-

 
 
Register

{% csrf_token %}

  {{ register_form.non_field_errors }}

 
{% for field in register_form %}
  

  {{ field.errors }}

{{ field.label_tag }}
{{ field }}
  
{% endfor %}




   
   
  $(function() {
  // Setup drop down menu
  $('.dropdown-toggle').dropdown();
 
  // Fix input element click problem
  $('.dropdown input, .dropdown 
label').click(function(e) {
e.stopPropagation();
  });
  });
   
   


How can i make the drop down form for registration to be displayed 
automatically with errors rather than user clicking the button again. I 
think i will need to write javascript, but i am not sure how i can achieve 
it. Please suggest.

Thanks
Sreekanth

On Monday, 11 March 2013 14:36:56 UTC, Tom Evans wrote:
>
> On Mon, Mar 11, 2013 at 1:28 PM, sri > 
> wrote: 
> > Hi, 
> > 
> > I am relatively new to Django and trying to create a Django application 
> > using 1.5 and created a pop up modal login and registration form using 
> > twitter bootstrap. The example i used to create the drop down 
> > login/registration form 
> > ishttp://mifsud.me/adding-dropdown-login-form-bootstraps-navbar/[1]<http://mifsud.me/adding-dropdown-login-form-bootstraps-navbar/%5B1%5D>.Now,
> >  
> > the problem i am having is that, how do i show any error messages 
> (password 
> > invalid etc) on the pop up login/registration drop down modal box. 
> > 
> > Here is my base.html file: 
> > 
> >  
> >
> >  > data-toggle="dropdown">Login 
> >  
> >  > method="post" class="form-horizontal">{% csrf_token %} 
> >  > style="margin-bottom: 15px;" type="text" name="email" size="30" /> 
> >  placeholder="Password" 
> > style="margin-bottom: 15px;" type="password" name="password" size="30" 
> /> 
> >  > value="Sign In" /> 
> >  
> >  
> >
> >
> >  > data-toggle="dropdown">Register 
> >  
> >  > method="post" class="form-horizontal" name="register_form">{% csrf_token 
> %} 
> > {{ register_form.non_field_errors }} 
> >  > style=&qu

django social auth with custom user model is not working

2013-04-27 Thread sri
i am trying to implement django social auth in my project and i am having 
trouble integrating it with my custom user model. Whenever i try to login 
to facebook, it is throwing an error and always re-directing to 
LOGIN_ERROR_URL Page.

My settings.py file looks like below.
 
FACEBOOK_APP_ID  = 'x'
FACEBOOK_API_SECRET  = 'x'
AUTHENTICATION_BACKENDS = (
   'social_auth.backends.facebook.FacebookBackend',
   'django.contrib.auth.backends.ModelBackend',
)

SOCIAL_AUTH_PIPELINE = (
  'social_auth.backends.pipeline.social.social_auth_user',
  'social_auth.backends.pipeline.associate.associate_by_email',
  'social_auth.backends.pipeline.misc.save_status_to_session',
  'social_auth.backends.pipeline.user.create_user',
  'social_auth.backends.pipeline.social.associate_user',
  'social_auth.backends.pipeline.social.load_extra_data',
  'social_auth.backends.pipeline.user.update_user_details',
  'social_auth.backends.pipeline.misc.save_status_to_session',
)

LOGIN_URL = '/user/login_register/'
LOGIN_ERROR_URL = '/user/login_register/'
LOGIN_REDIRECT_URL = '/'
LOGOUT_REDIRECT_URL = '/'

SOCIAL_AUTH_COMPLETE_URL_NAME = 'socialauth_complete'
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'socialauth_associate_complete'
SOCIAL_AUTH_RAISE_EXCEPTIONS = False
SOCIAL_AUTH_FORCE_POST_DISCONNECT = True
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True

SOCIAL_AUTH_USER_MODEL = 'myapp.MyUser'
FACEBOOK_EXTENDED_PERMISSIONS = ['email']

AUTH_USER_MODEL = 'myapp.MyUser'


And my custom user model is defined as below (just uses e-mail and doesn't 
use firstname, lastname or username)

class MyUserManager(BaseUserManager):
   def create_user(self, email, password=None):
  """
  Creates and saves a User with the given email and password.
  """
  if not email:
 raise ValueError('Users must have an email address')

  user = self.model(
  email=MyUserManager.normalize_email(email),
  )

  user.set_password(password)
  user.save(using=self._db)
  return user


class MyUser(AbstractBaseUser):

email = models.EmailField(
verbose_name='Email address',
max_length=255,
unique=True,
db_index=True,
)
is_active = models.BooleanField(default=True)
is_admin = models.BooleanField(default=False)

objects = MyUserManager()

USERNAME_FIELD = 'email'


Now when i try to login to my webapp using facebook login, it takes me to 
the facebook login credentials page and when i enter the login details, it 
throws me back to the LOGIN_ERROR_URL page. After i enter the facebook 
login details, it is not creating a new user in my app.

Can anyone help with what i am missing?


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: Developing django apps in jupyter

2021-11-29 Thread Vikas Sri
I recommend Pycharm, it makes development fast, helps in debugging and what
not.

On Mon, Nov 29, 2021 at 8:34 PM Md Rana Sarkar 
wrote:

> You can create virtualenv and use VS code . That's the free and better
> IDE for Django or any other web development.
>
> On Mon, Nov 29, 2021 at 7:23 PM 'MH' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Hi everyone
>>
>> I have built a few django apps, but on a very basic level and only for my
>> own usage. Little helpers for self management. So far I just used vi(m).
>>
>> Now I tried out jupyter for the first time. Looks great and thanks to a
>> few links from Google I could also load the django kernel in jupyter. Still
>> I am not sure how to use juypter in order to develop django apps. Is this
>> making sense to you? I either have one of those
>> demonstration-/documentation-oriented notebooks *or* I have a plain py
>> file as usual in django apps.
>>
>> My two questions are:
>> 1. Do you use juypter for django development?
>> 2. If not, which editor or free IDE do you use?
>>
>> Best regards
>> M
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/32085ce1-4bdc-4dfe-a031-9e4d6b15c9abn%40googlegroups.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANRb_txomeeAsb16t%3DpSZfoWbbF1Avb1ZGz%2B_7bvESi8Rp%3DKJg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANOk8kLMrJoNRikR55L-s83_FCLUeDd8pKirO6ojDu_kpznLOA%40mail.gmail.com.


it says there is no module django when im trying to configure urls. please help

2017-04-20 Thread sri anusha
C:\Users\srian\AppData\Local\Programs\Python\Python36\python.exe 
C:/Users/srian/internship/polls/urls.py
Traceback (most recent call last):
  File "C:/Users/srian/internship/polls/urls.py", line 1, in 
from django.conf.urls import url
ModuleNotFoundError: No module named 'django'

Process finished with exit code 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e438904e-e90a-4686-8f84-7017b7b40864%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: No module named 'blog'

2020-05-09 Thread sri vishva
Try creating a new app Blog using
>>pip install django-admin startapp Blog
And now replace the existing files with your contents

On Fri, 8 May 2020, 4:22 pm Mukesh Badgujar, 
wrote:

> First... I... created Project at my machine... then... uploaded to
> github then from  git i import it to my namecheap shared hosting
> server, i created python app in that folder, then i run migrations cmds...
> but apps are not detected by django
>
> On Thu, 7 May, 2020, 6:09 pm Mohsen Pahlevanzadeh, <
> m.pahlevanza...@gmail.com> wrote:
>
>> Where did you import your module?
>>
>> On Thu, May 7, 2020 at 3:09 PM Mukesh Badgujar <
>> mukesh.badgujar...@gmail.com> wrote:
>>
>>> already added
>>>
>>> 'home.apps.HomeConfig',
>>> 'blog.apps.BlogConfig',
>>> 'shop.apps.shopConfig',
>>>
>>> one thing is that, i copied this app folder frm my other project, this
>>> is not created here
>>>
>>>
>>> On Sunday, 9 August 2015 22:43:38 UTC+5:30, Robin Lery wrote:

 Did you add your 'blog' app in the installed apps in settings.py?

 On Sun, Aug 9, 2015 at 10:35 PM, Maggie Chang 
 wrote:

> hi all,
> would like to seek for everyone's help.
> I am following the django girls instruction =>
> http://tutorial.djangogirls.org/en/django_urls/index.html#your-first-django-url,
> but encounter the problem.
> when I connect to 127.0.0.1:8000, I got the No module named 'blog'
> response.
> Here's the message on browser.
> **
> ImportError at /
>
> No module named 'blog'
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
> Django Version: 1.8
> Exception Type: ImportError
> Exception Value:
>
> No module named 'blog'
>
> Exception Location: /usr/lib/python3.4/importlib/__init__.py in
> import_module, line 109
> Python Executable: /home/maggie/djangoanywhere/venv/bin/python
> Python Version: 3.4.0
> Python Path:
>
> ['/home/maggie/djangoanywhere',
>  '/usr/lib/python3.4',
>  '/usr/lib/python3.4/plat-x86_64-linux-gnu',
>  '/usr/lib/python3.4/lib-dynload',
>  '/home/maggie/djangoanywhere/venv/lib/python3.4/site-packages']
>
> Server time: Mon, 10 Aug 2015 00:47:53 +0800
> **
>
> This issue occurred when I add *url(r'', include('blog.urls')), *into
> *magsite/url.py*
> **
> *url.py*
> **
> from django.conf.urls import include, url
> from django.contrib import admin
>
>
> urlpatterns = [
> url(r'^admin/', include(admin.site.urls)),
> url(r'', include('blog.urls')),
> ]
> **
> Any idea about the root cause? :(
> and any response will be appreciate.
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/0c3ba90d-97d3-448c-8656-0b2ad6becca7%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

 --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/4a25e83a-0f62-4f60-8401-618252682a22%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJFFGZLyEOZBqbdVULzD8xR6abjfvy8VoMaO4War133B3FeDXQ%40mail.gmail.com
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/

Re: Project available

2020-05-11 Thread Sri Harsha
iam interested in this project plz let me know brief about this
Best Regards
From
V.Sri harsha


On Mon, May 11, 2020 at 11:35 AM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:

> Dear group members,
>
> I have a django project available the flowcharts of which will be up in 1
> week.  Write or call if interested ?
>
> Willy
> +91 9910669700
> wi...@kawapeople.com
>
> Sent from my iPad
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/58FEE8F5-5336-43BA-B65D-ECDA1C8303EA%40gmail.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMPL_p5CekXgrCHa1C-vhrO%3DhU4bQS0cWBrJE_Q-vu9rYsXvOA%40mail.gmail.com.


User Signup ??

2018-10-02 Thread Vikas Sri
Hello !!
I need to get my users signup in my web app. Can't find it in official 
documentation. Would be thankful if someone shed a light on 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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/158cccbd-09e7-4e79-83d2-5c93127820ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Embedding pdfs in Django

2018-11-11 Thread Vikas Sri
I am preparing learning tutorial application in Django, which will contain 
PDF's  that I need to display in my templates. I tried ,  
etc but nothing worked. Do I need to install something to make it work?

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bf37ceb4-1ab0-4ec7-816d-20070fe767c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Partner

2021-06-23 Thread Sri ram
Hello, I am interested and love to know more about this opportunity.

On Wed, Jun 23, 2021 at 8:48 PM ericki...@gmail.com 
wrote:

> hello guys am looking for any one good at Django and DRF i have couple of
> personal projects which needs this tech spec am not good at them if any one
> is interested plz i will be grateful
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b21836a0-1b17-4467-9b3c-5aba128e2c23n%40googlegroups.com
> 
> .
>


-- 
Thanks & Regards


T.Sriram,
Mob:  9849828772

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOa4MY_6TxZd6YiWebCd91omGqBA4JH%2BXgvwHJkb1ryB07ZDkA%40mail.gmail.com.


Re: Any internship or part time work

2024-09-25 Thread Sri Santhosh
Change your resume

On Mon, Sep 23, 2024, 3:24 PM AYUSH GUPTA 
wrote:

> Hii,
>  I am interested in the Django Developer position. Any Internship or
> part time job available?
> i am attaching my resume.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAAr4ktSWZc8qAdSY253tvoPO_fFzp58tmNNkGo4sYaPSsBFU7Q%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAG22u88kP4Ut_FUqe4tx4J0dY2W7u5DU20QJffq3VA3gcNQsLg%40mail.gmail.com.


Re: Token Generation Errors on Login

2025-02-13 Thread Sri Santhosh
First you need to encrypt that then decrypt

On Thu, Feb 13, 2025, 8:31 PM Balaji V 
wrote:

>   Hi, I'm new to Django. When I try to generate a login token, I receive
> these errors:
>   {"detail": "Authentication credentials were not provided."}
> {"error_short": "Module is not Assigned", "status": "failed"}
>
> Any help resolving these issues.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 view this discussion visit
> https://groups.google.com/d/msgid/django-users/acad6643-3e00-4898-ae6b-d21a83cf5f66n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/django-users/CAG22u894W4NqBUfDD3Enw%3D3hfVNzpuhWoviFjneN8fWGcaQQEg%40mail.gmail.com.