Composite or compound primary key support

2006-06-13 Thread Sanjay
OrderItemDeliveryDates ( OrderID int PK, ItemNo int PK, DeliveryDate Date PK, Quantity Required . . . ) Thanks, Sanjay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Composite or compound primary key support

2006-06-13 Thread Sanjay
to the existing database? Seems risky if other applications are using the DB parallely? Thanks again. Sanjay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Generating models from a class diagram

2006-06-13 Thread Sanjay
Sanjay --~--~-~--~~~---~--~~ 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

Re: Composite or compound primary key support

2006-06-13 Thread Sanjay
Hi Michael, Nice to get clear answers to my queries. Thanks a lot. Sanjay --~--~-~--~~~---~--~~ 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@google

Web Application Engineer opening - Boston MA or Managua, Nicaragua

2012-04-09 Thread Sanjay Jain
Django developers may be interested in this opening in Boston or Managua. http://www.quoininc.com/quoin/quoin-about/jobs/python-django-rails-engineer-boston.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Help - Which IDE is best to use.

2012-05-14 Thread Sanjay M
I am new to Django, and I was confused in choosing a IDE between Eclipse and aptana studio 3 to edit source code. Kindly suggest me a good one. Thank you in advance, Regards, Sanjay M -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Help - Which IDE is best to use.

2012-05-14 Thread Sanjay M
Thanks for all the replies, But what is the difference between aptana standalone version eclipse plugin version? On Monday, May 14, 2012 9:26:22 PM UTC+5:30, Sanjay M wrote: > > I am new to Django, and I was confused in choosing a IDE between Eclipse > and aptana studio 3 to edit so

How to

2012-05-15 Thread Sanjay M
I want to create a virtualenv pip, but I don't know how to Install virtualenv by running pip install virtualenv? Can anyone explain how to setup a virtualenv? Thanks in advance, -Regards, Sanjay M -- You received this message because you are subscribed to the Google Groups "Dj

Re: Project Structure - Lots of scattered custom views

2013-01-08 Thread Sanjay Bhangar
he idea of storing some things just on the file-system quite interesting, and the code to manage it is generally pretty straightforward. Of course, this may also be a terrible idea, but I'd also love to hear why .. :) Cheers, Sanjay On Tue, Jan 8, 2013 at 9:52 AM, Lachlan Musicman wrote:

Re: Project Structure - Lots of scattered custom views

2013-01-13 Thread Sanjay Bhangar
On Sat, Jan 12, 2013 at 12:04 AM, chad petzoldt wrote: > Sanjay, you were hitting things pretty close. I think that making sure slug > names match up to real *static* locations is the key. I am hosting with > Apache, and I thought about using some configurations to cheat a little bit,

Re: Project Structure - Lots of scattered custom views

2013-01-15 Thread Sanjay Bhangar
lthough, er, anything that you use to manage content is a content management system :) The other option, of course, is to tell the client that they need to stick to a consistent format, and then just put stuff into different fields in the database and render it in a template like normal :) hope my

Re: Generic views and url issues

2013-01-23 Thread Sanjay Bhangar
ist view: > > {% load url from future %} > {% if object_list %} > > {% for adcall in object_list %} > {{ adcall.name > }} > {% endfor %} > > {% endif %} > try: {% url 'detail' object_id=adcall.id %} since you have object_id defined as

Re: Moving a Django website to another server

2013-01-26 Thread Sanjay Bhangar
this to create a requirements.txt file to 'pip install -r requirements.txt' from on the new server while making sure it gets the very exact version of dependencies so you can be sure it is running the same code -- in general, I have found this to be the smoothest way to deploy projects o

Re: Automating deployments

2013-02-03 Thread Sanjay Bhangar
packages . Then it should use mysqldb from the one installed by apt, which should generally work better with the version, etc. on your machine than the one installed from pip. Hope that helps, Sanjay > let me know if you finish it. > > With Best > -Ashwin. > +91-9959166266 > > &g

Re: On the fly image resize

2013-02-03 Thread Sanjay Bhangar
nd a way to specify something like "keep format of uploaded image" - this was some time ago, though, so I'll check again - if anyone has dealt with this, though, would love to know how :) Cheers, Sanjay > https://github.com/sorl/sorl-thumbnail > > > On Saturday, Fe

Re: How to associate a formset with a field in a form

2013-02-12 Thread Sanjay Bhangar
x27;s a jquery plugin for that: http://blog.stanisla.us/2009/10/10/jquery-plugin-django-dynamic-formset/ You should also probably read the documentation at https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets which covers these things better than my email :-) All the best

Re: Has the djangoproject.com site been down?

2013-02-13 Thread Sanjay Bhangar
for future reference, I find http://downforeveryoneorjustme.com/ to be quite useful for checking this sort of thing On Wed, Feb 13, 2013 at 5:12 PM, Babatunde Akinyanmi wrote: > Its not just you, at least when I'm not trying with my phone. > > ..and say your from Nigeria not Africa > > Sent f

Re: Need help with GeoDjango distance query.

2013-02-16 Thread Sanjay Bhangar
distance. > just off the bat -- the distance query expects a decimal.Decimal object - so you'd need to convert whatever models.F('connection_distance') returns into a valid Decimal before passing it to the query .. -Sanjay -- You received this message because you are subscribed

Re: plugin for selecting files

2013-03-15 Thread Sanjay Bhangar
ed though, let me know, I can try and answer :) Cheers, Sanjay On Fri, Mar 15, 2013 at 9:36 PM, Javier Guerra Giraldez wrote: > On Fri, Mar 15, 2013 at 10:15 AM, Tom Evans wrote: >> I'm >> fairly certain that should not throw any change >> events or make the name of the

Re: plugin for selecting files

2013-03-16 Thread Sanjay Bhangar
. What would be your use-case for getting the path on the user's machine? -Sanjay -- 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+u

Re: Changing User model

2013-03-18 Thread Sanjay Bhangar
work no problem .. ). Please do share what works out though - I was extremely excited about the new Abstract User class, but found subclassing AbstractUser and maintaining admin usability to manage users really hard to accomplish, some-how. Let me know if you want me to post more details on what i

Re: Changing User model

2013-03-18 Thread Sanjay Bhangar
On Tue, Mar 19, 2013 at 3:11 AM, Lachlan Musicman wrote: > Sanjay! > > How are ya? I'll let you know as soon as I've properly implemented the > whole shebang. Re "problems with admin" I just sent an email to > pydanny of 2Scoops in this regard. I don't

PyScripter and Django with MySQL in wamp

2013-03-30 Thread Sanjay Maurya
Hello Everyone, I new to Django. I'm using portable PyScripter 2.4.1.0 (Python 3.2.1) for learning Python. Recently I downloaded Django 1.5. With help of tutorials, I could install Django on this portable PyScripter. Currently I'm able to create projects and apps in the Django. However I'm not

Re: m2m symmetry confusion

2013-04-11 Thread Sanjay Bhangar
ore adding the m2m, is it ? Any-how, um, not sure if that helps at all or adds to the confusion, just that I remember experiencing some brain-jelly and at that point, grokking the 'symmetrical=False' option was my way out of it .. not sure if that's your problem, though :-) Cheer

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Sanjay Bhangar
uire two different versions of something like psycopg2 for different projects, so it should not be problematic to have it installed system-wide .. All the best, Sanjay On Sun, Apr 14, 2013 at 10:17 PM, Serdar Dalgic wrote: > On Sun, Apr 14, 2013 at 5:45 PM, Mustafa Tulu > wrote: >

Re: Help with integration of bootstrap and Django 1.4.3

2013-04-20 Thread Sanjay Bhangar
OT,'../static/assets'), > ) > > > In template files. > > > Shouldn't that be: ( /static/ ... instead of static/ ... ) If its missing the initial slash, the link would be relative to the current page, which would be fine at http://yourdomain.com or http://yourdomain

Re: An easy way to integrate Jcrop in Django's admin?

2013-06-26 Thread Sanjay Bhangar
I have used https://pypi.python.org/pypi/django-image-cropping/0.5 to offer image cropping functionality in the admin and it has worked quite well for me. Hope that helps, Sanjay -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: wsgi + XAMMP

2013-06-26 Thread Sanjay Bhangar
dependencies, and for ones that don't pip install, you should find .exe installers with a quick google. Hope that helps, Sanjay On Wed, Jun 26, 2013 at 9:58 PM, Timur Kartaev wrote: > Yes, I am trying to use django on local machine and want to use MySQL. If > you have any other

Re: Get Form from string?

2013-07-01 Thread Sanjay Bhangar
from your email that what you need is something similar, and perhaps someone from the list has a better idea than the above to do it .. Hope that helps, though .. All the best, Sanjay On Sun, Jun 30, 2013 at 1:59 AM, MacVictor wrote: > I try in view get the form by name. > Example: &g

Re: Django 1.6 doesn't install via pip

2013-07-01 Thread Sanjay Bhangar
> Hey L :), fwiw, this should work if you want to install via pip currently: pip install -e git+https://github.com/django/django.git@1.6b1#egg=django The docs [0] do say that pip install django==1.6b1 should work though, so I'm guessing someone is going to push to pypi soon :-) Cheers,

Re: Returning data from view to ajax call

2013-07-02 Thread Sanjay Bhangar
t the error, but the ajax success function does not seem to be > called. > > An invaluable tool here is to use the Developer Tools in the browser to inspect AJAX requests made and their responses .. in Chrome, open Developer Tools (f12 is a handy shortcut for this) and go to the Network Tab

Re: Returning data from view to ajax call

2013-07-02 Thread Sanjay Bhangar
om pdb that the python code is sending > something in the content when it does this: > > return HttpResponse(content=data, content_type="text/plain", status=200) > > try: return HttpResponse(data, content_type="text/plain", status=200) (no content= ... ) be

Re: Returning data from view to ajax call

2013-07-02 Thread Sanjay Bhangar
On Tue, Jul 2, 2013 at 4:20 PM, Larry Martell wrote: > On Tue, Jul 2, 2013 at 5:14 PM, Sanjay Bhangar > wrote: > > On Tue, Jul 2, 2013 at 4:01 PM, Larry Martell > > wrote: > >> > >> > >> > >> In the browser the response has this: > >

Re: CSRF verification failed

2013-07-06 Thread Sanjay Bhangar
port render . return render(request, "registration/register.html") Basically, you need to make sure the template has the context created by RequestContext, otherwise csrf_token will not be available as a variable on the template. Hope that helps, Sanjay > > -- >

Re: Big Picture?

2013-07-07 Thread Sanjay Bhangar
awesome :-) -- it's a really nice "big picture" and introduction to the different components that can be hard to visualize in one's head when just getting started .. do you mind if I use it when introducing people to Django? (with credit, of course:)) Thanks again! -Sanjay

Re: PDF generator in Django

2013-08-05 Thread Sanjay Bhangar
y, but if that seems interesting and you need any help / clarification, let me know .. -Sanjay > Regards, > Nigel Legg > 07914 740972 > http://www.trevanianlegg.co.uk > http://twitter.com/nigellegg > http://uk.linkedin.com/in/nigellegg > > > > On 5 August 2013 07:48,

Re: Middleware Causing OperationalError: (2006, 'MySQL server has gone away')

2013-09-10 Thread Sanjay Bhangar
be able to reproduce the error with the colleague and get back - if it helps, I'm fairly certain it is windows-specific, of course, I cannot be sure (same project with same code runs without problem on my ubuntu machine). Please do post if you find a solution, of course :-) thanks, Sanjay &

Re: Restrict access to user-uploaded files to authorized users

2013-09-26 Thread Sanjay Bhangar
actly the use-case that it facilitates .. I would strongly recommend reading up on XSendfile and seeing if implementation is feasible, because it's really the best, non-hacky way to do this .. Any-how, all the best :-) -Sanjay -- You received this message because you are subscribed to the

Re: Image browsing in django

2013-10-16 Thread Sanjay Bhangar
Harjot, It is enctype='multipart/form-data' and not encoding='multipart/form-data' Hope that helps - all the best, Sanjay On Wed, Oct 16, 2013 at 10:11 AM, Harjot Mann wrote: > On Mon, Oct 14, 2013 at 9:48 PM, Harjot Mann wrote: >> I have not done anything special

Geo support with Django Rest Framework

2013-10-20 Thread Sanjay Bhangar
e else may find this useful and then I could think about making whatever solution I come up with more generalizable .. Also, if there's a better place to discuss this, please let me know :) Thanks, Sanjay -- You received this message because you are subscribed to the Google Groups &quo

Re: Geo support with Django Rest Framework

2013-10-21 Thread Sanjay Bhangar
Hey Tom, On Mon, Oct 21, 2013 at 1:50 PM, Tom Christie wrote: > Hi Sanjay, > > I would take a look at these two repos: > > https://github.com/dmeehan/django-rest-framework-gis > https://github.com/mjumbewu/django-rest-framework-gis > This is EXACTLY what I was looking for.

Re: Geo support with Django Rest Framework

2013-10-21 Thread Sanjay Bhangar
ith docs and everything. I'll probably bug the people over at the Django Rest Framework mailing list if I run into issues, but so far I found ways to do everything I needed to do - just the GeoJSON serialization seemed awkward, but I see there's a package for that, so I seem to be sorted.

Re: How to call url and get json data

2013-10-21 Thread Sanjay Bhangar
ed, etc. and finally render the template with something like: from django.shortcuts import render return render(request, "template_name.html", data) Then in your template you can output like {{ author_name }}, {{ author_url }}, etc. as needed. Hope that makes sense. All the best, Sanjay

Re: deploying djnago on apache

2014-08-11 Thread Sanjay Bhangar
ll. Have you done a2enmod on the vhost file? Can you check if there is an entry / symlink inside /etc/apache2/sites-enabled/ (post output of 'ls /etc/apache2/sites-enabled'). Then, first need to figure out why the conf files is not being read. 2> If the conf file is being read, you should

Re: deploying djnago on apache

2014-08-12 Thread Sanjay Bhangar
e, ping me on chat (sanjayb on IRC/Freenode or my current email address on google-chat) -- we can go over these things step by step and make sure things are in order. Cheers, Sanjay > > There are no erros at the bluepearlhotel > > > On Monday, August 11, 2014 4:52:11 PM UTC+1, San

Re: Retrieving recurring events using Django queries

2014-09-19 Thread Sanjay Bhangar
especially the part about needing some arbitrary cut-off date to prevent an infinite generation of EventDate entries .. Please do share what you land up coming up with. All the best. -Sanjay On Fri, Sep 19, 2014 at 6:13 PM, Stodge wrote: > I have the following to model a calendar entry (recurr

Re: Django 1.7, KeyError: u'manager' error

2014-10-17 Thread Sanjay Bhangar
ods on (like 'all', 'filter', etc.), but calling the manager directly doesn't quite work, as you found out :) All the best, Sanjay -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

Re: Question on a resembling function on truncatewords

2014-04-12 Thread Sanjay Bhangar
ten_words }} > This. And in the desciption() method, you want to do "return self.description[0:20] and not print..." - print will just print the output in the console at that point - you need to "return" the value from the method. So: def shorten_words(self): if len

Re: Opinion needed for a BookMarker project - Regarding CSRF token

2014-05-12 Thread Sanjay Bhangar
s sense, otherwise just search for "django ajax csrf token" or so and you should find quite a lot of examples online :) All the best. -Sanjay -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: Formsets, adding new forms and autocomplete/ajax selects

2014-05-28 Thread Sanjay Bhangar
also based on my impressions from at least a year ago, so things may have changed. > Surely I'm not the first person that's had this need - can anyone > offer tips on a good or better solution? > Haha, I thought I was some sort of crazy person for needing this a few years ago

Re: backbonejs and django

2014-05-29 Thread Sanjay Bhangar
server and return an array. So, your Collection definition would look something like: var orgColl=Backbone.Collection.extend({ model: org, urlRoot: 'api/orgnanization/', initialize:function(){ this.fetch();

Re: Admin site doesn't work

2014-06-11 Thread Sanjay Bhangar
- AFAIK, this is only used when generating full url permalinks, like in RSS feeds, etc. HTH, Sanjay -- 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 djan

Re: Admin site doesn't work

2014-06-11 Thread Sanjay Bhangar
On 11 Jun 2014 18:04, "Glen J" wrote: > Sanjay, > Thanks for the reply. I've tried accessing it various ways using both > nginx and the included devserver on :8000. I've done both 127.0.0.1/admin > and 127.0.0.1/admin/ with the same results. I can post the cont

Re: Admin site doesn't work

2014-06-12 Thread Sanjay Bhangar
ly, I doubt that's it. > SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' > > # A sample logging configuration. The only tangible logging > # performed by this configuration is to send an email to > # the site admins on every HTTP 500 error whe

Re: Extracting results of a join

2016-10-10 Thread Sanjay Bhangar
ays (will let you read the docs to figure that out since I haven't quite myself ;-) ) Hope this helps! select_related has gotten me out of many DB optimization issues in the past and now I'll never ship code without carefully examining where all using a `select_related` would significantly s

GeoDjango: Filter by Area

2016-12-19 Thread Sanjay Bhangar
nyone has any work-arounds to filter by area size of feature, and / or if there are plans to support this in future versions. Thank you all again for an amazing community and amazing piece of software :-) -Sanjay -- You received this message because you are subscribed to the Google Groups "

Re: GeoDjango: Filter by Area

2016-12-22 Thread Sanjay Bhangar
On Wed, Dec 21, 2016 at 10:08 PM, Tim Graham wrote: > If you don't get an answer here, you can also ask on the geodjango list: > https://groups.google.com/forum/#!forum/geodjango. > > Will do. Thanks Tim, you're the best! -- You received this message because you are subscribed to the Google Gro

Re: How to perform additional actions on PasswordReset in Django

2019-05-07 Thread Sanjay Chandak
o-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/700dcec5-bce9-4d9a-8011-27ae091722ce%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- WITH REGARDS Sanjay Chandak student of MNNIT, Allahabad ECE Dep

Fresher

2019-05-08 Thread Sanjay Chandak
else need to study? Thanks Sanjay -- *WITH REGARDS* *Sanjay Chandak* *student of MNNIT, Allahabad* *ECE Department* -- 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 i

i am new i want full details of Django

2019-05-16 Thread Sanjay K
could u please provide the basic books -- 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 ema

Django per-view cache to database error

2016-03-19 Thread Sanjay Ortiz
I was learning how to implement django cache framework in my simple web application. I've used postgresql database and i've created my_cache_table. I tried using "per-view cache" technique but it doesn't work. No database entries at my_cache_table have been created. #settings.py MIDDLEWARE_

Validating count + property of a Many2Many with a through table

2018-07-31 Thread Sanjay Bhangar
lve this, to, ideally, be able to have all the validation that pertains to a particular model in one place, and be able to test all model validations in a consistent manner. Thank you to whoever read this far :-) -Sanjay -- You received this message because you are subscribed to the Google Groups

Re: New entry tries to use an existing unique id

2018-10-26 Thread Sanjay Bhangar
55, true); # assuming your sequence is called content_id_seq and the highest id was 4555 . If doing this individually for each table in the db seems a bit tedious, you will find various scripts and solutions to automate the process a bit more by searching for something like "postgres reset sequen

Re: Many to Many field in ModelForm - with tens of thousands of records

2018-10-29 Thread Sanjay Bhangar
y fields. Hope that helps, Sanjay On Mon, Oct 29, 2018 at 5:01 PM Web Architect wrote: > > Would also add that the server CPU usage was hitting 100% due to the template > loading issue. > > On Monday, October 29, 2018 at 4:48:54 PM UTC+5:30, Web Architect wrote: >> >> Hi, &

runserver error rectification

2018-11-26 Thread Sanjay Malviya
good evening, pls anyone help me in error out following command notification got after runserver command PS C:\Users\AARVIND\mycode\mysite> python manage.py runserver Performing system checks... Unhandled exception in thread started by .wrapper at 0x02AC3F60> Traceback (most recent call last): F

Re: runserver error rectification

2018-11-27 Thread Sanjay Malviya
What modification to codes required, pls in project mysite/mysite/polls(app) polls/views.py from django.http import httpresponse def index(request): return httpresponse('Hello, world, You're at the polls index') polls/urls.py from django.urls import path from . import views urlpatterns = [

Re: Date Range picker

2021-02-24 Thread Sanjay Singh
Normally u can use jquery date picker. *Thanks & Regards,* *Sanjay Singh**Senior Software Engineer* *SRM Techsol Private Limited* B-48, Sector-C, Aliganj Lucknow-226024 Phone : (+91) 522 2328654 Skype: sanjay1.singh_1 On Wed, Feb 24, 2021 at 4:03 PM neha bhurke wrote: > Hello , >

Re: if not VALID_BUCKET.search(bucket) and not VALID_S3_ARN.search(bucket): TypeError: expected string or bytes-like object

2024-06-05 Thread Sanjay Sikdar
django-storages has been updated that's why you are getting this error. OLD SYNTAX from storages.backends.s3boto3 import S3Boto3Storage import os class MediaStorage(S3Boto3Storage): bucket_name = os.environ.get('AWS_STORAGE_BUCKET_NAME') location = 'media' class StaticStorage(S3Boto3St