Re: [non-techinacal question][like a job offer for junior] a bit of development for fun and some money
Hi Rush, I have about 5-6 months of experience on working with django. This my profile http://goromlagche.in/resume#experience You can contact me on this mail mrinmoy.da...@gmail.com On Wednesday, December 11, 2013 11:45:21 PM UTC+5:30, rush wrote: > > Hi, > > First of all sorry for using development maillist for a kind of job offer. > Also if you're experienced senior django developer, please skip this > message. It won't be interesting for you. > > However if you're a junior developer with some free time and a desire to > learn django a bit deeper, you're welcome. > Unfortunately there is not much money I can offer at the first time ( and > I even do not know, if project will make some profit after going live ). > Two words about the project: > There is a small project written in django. The development is still in > progress. > There is no rocket science used in it, but it needs some features and > its number is growing. > The project itself is educational. It has two parts: an application for > learning some subjects ( videos and tests ) and an application for > communication between students ( private messages, photos and so on ). > Unfortunately the project itself is not opensources ( but it might be in > the future ). > > So, if you're still interesting, please, contact me directly via this > email. > > -- > wbr, > rush. > -- 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/ec1872a5-fa4f-4ecf-ae0a-478b2a4d58d6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Best way to learn Django considering Python versions and etc.
Two Scoops is a fantastic resource -- but it's not a tutorial. It's a collection of best practices and useful patterns. It won't make a whole lot of sense until you've got a handle on at least the basics of Django. If you buy Two Scoops expecting a tutorial, you're going to be disappointed. Yours, Russ Magee %-) On Thu, Dec 12, 2013 at 4:11 AM, Sithembewena Lloyd Dube wrote: > Thanks for this - interesting. Another option would be Two Scoops of > Django by PyDanny and Audrey. > > > On Wed, Dec 11, 2013 at 5:41 AM, Ashutosh Das wrote: > >> >> Hi >> there is a great book for Django http://www.tangowithdjango.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 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/3a4cfa57-29ab-44f5-9c2f-95cc66e6c4c6%40googlegroups.com >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Regards, > Sithu Lloyd Dube > > -- > 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/CAH-SnCAwz61CkB4mFKSnBxAyaSF2%3D92G-tz7n2iJvuimh%2BAxjg%40mail.gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq84_QLsi86VCS6ZxgtXt2S0obF9mk3Kzgrv8mSizSy6dOoQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
reports
Can anyone direct me to some tool to report in django using geraldo because I am and I'm having difficulty and do what I need in the reports. graciously fabricio -- 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/3911b21f-4ec6-4fba-93a7-3438a7480199%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Best way to learn Django considering Python versions and etc.
Thanks for this - interesting. Another option would be Two Scoops of Django by PyDanny and Audrey. On Wed, Dec 11, 2013 at 5:41 AM, Ashutosh Das wrote: > > Hi > there is a great book for Django http://www.tangowithdjango.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 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/3a4cfa57-29ab-44f5-9c2f-95cc66e6c4c6%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- Regards, Sithu Lloyd Dube -- 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/CAH-SnCAwz61CkB4mFKSnBxAyaSF2%3D92G-tz7n2iJvuimh%2BAxjg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Django and sessions race condition
I have lost one day with struggling with django sessions and it seems that I am not really able to resolve it without coding my own sessions middleware or using some locking. The problem is, sessions are not stored even if the saving is triggered manually. It happens now and then, because of race condition which occurs when multiple simultaneous AJAX requests are sent from the client side. I'm using db backend. The thing is, everything is ok when calling only one start() dajaxice call from the javascript side. So the question, why session is not stored sometimes? Should I lock the segment, where session is being stored? I double checked session_key is still the same. Should not be this resolved in the session middleware module? Settings: SESSION_SAVE_EVERY_REQUEST = True def print_session_keys(request, tmp): session_key = request.session.session_key session = Session.objects.get(session_key=session_key) a = session.get_decoded() print tmp+str(a.keys()) @dajaxice_registerdef start(request): dajax = Dajax() searchHash = os.urandom(16).encode('hex') data = 1 print_session_keys(request, 'Before: - hash: '+searchHash+' ') request.session.set_expiry(0) request.session[searchHash] = data request.session.modified = True request.session.save() print_session_keys(request, 'After: - hash: '+searchHash+' ') *LOG:* 1 or 2 requestes of 3, are stored fine: Before: - hash: 05f22e8e828a0e6145519e0bb0778357 [u'b0d0d5e4ebe846c4e3ffa66bfbd2e7e3', u'usermode', u'_session_expiry'] After: - hash: 05f22e8e828a0e6145519e0bb0778357 [u'09cf89e0cbe5fb6a179e1f658d452c6b', u'05f22e8e828a0e6145519e0bb0778357', u'usermode', u'b0d0d5e4ebe846c4e3ffa66bfbd2e7e3', u'_session_expiry'] BUT: Before: - hash: 071e79041aba16a82a32fe4a77c3b4e0 [u'b0d0d5e4ebe846c4e3ffa66bfbd2e7e3', u'usermode', u'_session_expiry'] After: - hash: 071e79041aba16a82a32fe4a77c3b4e0 [u'09cf89e0cbe5fb6a179e1f658d452c6b', u'05f22e8e828a0e6145519e0bb0778357', u'usermode', u'b0d0d5e4ebe846c4e3ffa66bfbd2e7e3', u'_session_expiry'] -- 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/55f6db0a-340a-4f08-b192-e8d95ffdb4b6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Testing Frameworks and Practices(consensus?)
Hi, This seems like a more appropriate forum that SO for this discussion. I've been testing my apps with Selenium, which seems to be a popular choice for Django, but so does unittest and some others, as well as using coverage to check for code coverage. I'm curious to hear about others experience with testing frameworks, particularly those who have moved through more than one about any best practices experiences they've had, and what caused the choice to go with what you're using now. Best, Thomas -- 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/CALgvumVzt4MTty7KdkfF5HLi_Ja%2BR-v3qydOV4PFQFYW-%2BS%2BWA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
formfield_for_foreignkey: kwargs is empty?
I'm trying to use formfield_for_foreignkey to filter the dropdown of a ModelAdmin with Django 1.6 on Python 2.7.6, following https://docs.djangoproject.com/en/1.6/ref/contrib/admin/ class CupAdmin(admin.ModelAdmin): ... # hide inactive distributions def formfield_for_foreignkey(self, db_field, request=None, **kwargs): if db_field.name == 'distribution': kwargs["queryset"] == Distribution.objects.exclude(active=False) return super(CupAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs) My code fails because kwargs has no queryset, for both adding or editing Django Version:1.6Exception Type:KeyErrorException Value: 'queryset' When looking at localvars in the traceback, kwargs is empty ( {} ) Am I (or the docs) missing something? -- 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/810a2fde-e903-43a0-975e-0f9c04dd0506%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python-Django : ImportError at / : No module named urls
Have you checked the file permissions? The user runing the project, must be able to read the files at least. check this question: http://stackoverflow.com/questions/805427/which-permissions-should-i-use-for-django-folders-at-my-server Em quarta-feira, 11 de dezembro de 2013 11h39min08s UTC-2, Lier escreveu: > > Check "urls.py" file in your project manage folder. > > I think you doesn't have a "urls.py" in your project folder. > > > > 2013년 12월 11일 수요일 오후 5시 32분 20초 UTC+9, shoaib ijaz 님의 말: >> >> I have created Djnago project in eclipse. Unfortunately, i am facing >> issue when i run the project >> >> ImportError at / No module named urls >> >> Here Error Page http://dpaste.com/1499981/ >> >> Eclipse Project >> http://i1008.photobucket.com/albums/af204/shoaibshah01/Untitled_zps84f95b4f.jpg >> > -- 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/0b3c0af7-5d09-41ea-8392-7e68c99b1d07%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Python-Django : ImportError at / : No module named urls
Check "urls.py" file in your project manage folder. I think you doesn't have a "urls.py" in your project folder. 2013년 12월 11일 수요일 오후 5시 32분 20초 UTC+9, shoaib ijaz 님의 말: > > I have created Djnago project in eclipse. Unfortunately, i am facing issue > when i run the project > > ImportError at / No module named urls > > Here Error Page http://dpaste.com/1499981/ > > Eclipse Project > http://i1008.photobucket.com/albums/af204/shoaibshah01/Untitled_zps84f95b4f.jpg > -- 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/93855146-b7a2-4b96-a56a-416f13e28c32%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Writing your first Django app, part 1 (1.6)
Dear all, The problem is solved.. The root cause were in models.py. I missed type a variable for return value on Choice Class. Anyway, big thanks for all your supports On Wednesday, December 11, 2013 5:19:48 AM UTC+7, Suhendri wrote: > > Hi, > > I'm new in Django, I'm excited with Django so I have to following the > existing tutorial to knew how to create a program with Django. > > I started with tutorial 1, Writing your first Django app, part1. I used > Django 1.6 and SQLite > > > I followed the instructions from the starting of the tutorial, until the > line of *# Create three choices* I got an error. > > When I typed p.choice_set.create(choice_text='Not much', votes=0), I got > an error: > *AttributeError: Traceback (most recent call last):* > *...* > *AttributeError: 'Choice' object has no attribute 'question'* > > I followed the tutorial exactly as it shown on web, but I got an error on > that line. Did I missed something in the tutorial ? > > Could you help me, to solve this problem so i can continue learn the > tutorial. > -- 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/34ca401d-6697-4314-9348-9a23073f920b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Python-Django : ImportError at / : No module named urls
I have created Djnago project in eclipse. Unfortunately, i am facing issue when i run the project ImportError at / No module named urls Here Error Page http://dpaste.com/1499981/ Eclipse Project http://i1008.photobucket.com/albums/af204/shoaibshah01/Untitled_zps84f95b4f.jpg -- 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/b05a6745-d150-4b1a-bd2a-297d665da1f7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Best way to learn Django considering Python versions and etc.
Hi there is a great book for Django http://www.tangowithdjango.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 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/3a4cfa57-29ab-44f5-9c2f-95cc66e6c4c6%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: ModelForms
On Wed, Dec 11, 2013 at 11:22 AM, wrote: > > Hello, > > when using ModelForms, which is the correct way to implement the "edit item" > pattern? > > Suppose I've a table with many rows, each representing a record in a > database. > I choose one and wish to display/let the user edit the details. > > I'm trying to use a ModelForm and fill some fields with specific data coming > froma query. > The problem is I'm unable to initialize the fields and have the page served. > > The arguments taken for a form do not work in a modelform. A ModelForm operates on an instance of a model. Eg instance = Quotation(filename='123') form = QuotationForm(instance=instance) Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1JOxGHQ1i6FHUPgSUTBSKpCYnrK%3De%3D81L9MMCd1wLozAA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
ModelForms
Hello, when using ModelForms, which is the correct way to implement the "edit item" pattern? Suppose I've a table with many rows, each representing a record in a database. I choose one and wish to display/let the user edit the details. I'm trying to use a ModelForm and fill some fields with specific data coming froma query. The problem is I'm unable to initialize the fields and have the page served. The arguments taken for a form do not work in a modelform. class Quotation(models.Model): #... filename = models.CharField("Filename", max_length=60) #... class QuotationForm(ModelForm): class Meta: model = Quotation #... def manage_quotations(request, quote_id): # retrieve quotation here # ... # just try to fill a form and have the page served qd = { 'filename' : '123' } form = QuotationForm() # cannot pass qd here as initializer if request.method == "POST": pass # manage posted data return render_to_response("quotes/manage_quotation.html", { "form": form, }) -- 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/523244aa-f4ad-4f90-9abf-ec06b41ff113%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Writing your first Django app, part 1 (1.6)
Hi, The Django tutorial has changed between 1.6 and the current development version. Because your error references the Choices.question field, it sounds as if you may have been following the development version in places. Make sure that you follow the Django 1.6 tutorial throughout. If you retry and follow the instructions, it should work. You can select the version of the tutorial using the selector in the bottom-right corner of the screen. Cheers, Alasdair On 10/12/13 22:19, Suhendri wrote: Hi, I'm new in Django, I'm excited with Django so I have to following the existing tutorial to knew how to create a program with Django. I started with tutorial 1, Writing your first Django app, part1. I used Django 1.6 and SQLite I followed the instructions from the starting of the tutorial, until the line of *# Create three choices* I got an error. When I typed p.choice_set.create(choice_text='Not much', votes=0), I got an error: *AttributeError: Traceback (most recent call last):* *...* *AttributeError: 'Choice' object has no attribute 'question'* I followed the tutorial exactly as it shown on web, but I got an error on that line. Did I missed something in the tutorial ? Could you help me, to solve this problem so i can continue learn the tutorial. -- Alasdair Nicol Developer, MEMSET mail: alasd...@memset.com web: http://www.memset.com/ Memset Ltd., registration number 4504980. Building 87, Dunsfold Park, Stovolds Hill, Cranleigh, Surrey, GU6 8TB, UK -- 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/52A839AB.1070607%40memset.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Writing your first Django app, part 1 (1.6)
On Tue, Dec 10, 2013 at 10:19 PM, Suhendri wrote: > Hi, > > I'm new in Django, I'm excited with Django so I have to following the > existing tutorial to knew how to create a program with Django. > > I started with tutorial 1, Writing your first Django app, part1. I used > Django 1.6 and SQLite > > > I followed the instructions from the starting of the tutorial, until the > line of # Create three choices I got an error. > > When I typed p.choice_set.create(choice_text='Not much', votes=0), I got an > error: > AttributeError: Traceback (most recent call last): > ... > AttributeError: 'Choice' object has no attribute 'question' When you encounter an error and ask for help, it is useful for those helping you to see the error message. Here, you have purposefully removed most of the error message. > > I followed the tutorial exactly as it shown on web, but I got an error on > that line. Did I missed something in the tutorial ? Probably - the tutorial does work if you follow all the steps precisely. Retry that part of the tutorial, and if you do have problems, reply back showing the full error message and what you typed to get it. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1J1zP_u9bYZK%2BcfBpys%2BehqpyOpHFtPSBqAxy2DhJ6P0w%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Save data from list display page django admin
Hi All Need help in solving this question ! http://stackoverflow.com/questions/20513675/how-to-save-data-from-list-display-page-in-django-admin Thanks in Advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABgq%3DFw7wGcYPjXnKnW0e7-6yvLUZ_VvijvJcVk4gcURz5phyg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.