Re: Error running Django tutorial

2016-03-19 Thread Ruth
I am getting the very same problem, despite adding include to my mysite\urls.py file. I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS Could it be a python 2.7 problem? Thanks, Ruth On Saturday, February 27, 2016 at 11:50:39 AM UTC-8, Mike Kipling wrote: > > I am working through the D

Re: Error running Django tutorial

2016-03-19 Thread Bruno Barbosa
Ruth, Show me the code! How is your urls.py? and the views.py? paste your code in https://gist.github.com/ and reply this email. -- Bruno Barbosa Web Developer *brunobarbosa.com.br * On Thu, Mar 17, 2016 at 3:50 PM, Ruth wrote: > Hi, > I am getting the same proble

Django ImportError: No module named admin

2016-03-19 Thread addison . slabaugh
As a result of attempting to update admin.py of one of my Django apps, I now get a Server Error (500) that has brought my site down. When I import admin from django.contrib, I get the following traceback: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/

Re: Forms in Django

2016-03-19 Thread James Bennett
First of all, notice the suggestion was to make the change on your *form* class, not the model -- forms are where you can specify that a particular widget + attributes should be used on a particular field. Though it's also possible to do things in the template itself if you know your way around th

Django Newb Help

2016-03-19 Thread parker smith
Hello, I am working on the django by example book and in ch. 2 I am having issues getting the recipient email to display inside the template tag... here is the specific line of code that isn't working and what I changed it to to get it some what working... views.py code referencing cd -

Re: Password hasher for vBulletin?

2016-03-19 Thread jorrit787
Thanks for the help! If anyone looks at this in the future, this is the code I ended up using: *hashers.py* class PBKDF2WrappedvBPasswordHasher(PBKDF2PasswordHasher): algorithm = 'pbkdf2_vB' def encode_vB_hash(self, vB_hash, salt, iterations=None): return super(PBKDF2WrappedvBPa

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what i was looking for, many thanks! Now i can render form i need and like. Now i will test and i hope it will be same easy to write data back to db. Many thanks, Stanley Dne pátek 18. března 2016 20:50:37 UTC+1 Fred Stluka napsal(a): > > Stanislav, > > Try these: > > {{ form.ti

Re: Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Rafael E. Ferrero
The main Django project website has an amazing good tutorial and documentation for start. Rafael E. Ferrero 2016-03-18 6:54 GMT-03:00 Santosh Srinivas : > Hi Folks, > > I'm new to both Python and Django. > I am looking for high quality video tutorials on Django and Python from > your experienc

static advertisement implementation

2016-03-19 Thread dilkash manghani
Hi, I want to create portal in which user can submit static advertisement html in django form , which can be displayed in website for n seconds before loading the front page of website. This may be easy , i am not sure , in django as i am new in this. Thanks, DIlkash -- You received this me

Django Newb Help

2016-03-19 Thread parker smith
Hello, I am working on Django by Example as a newb and am having issues in ch. 2... we are setting up a commenting system for blog posts and everything works except the form stays populated and there is no refresh after successfully posting...the page is supposed to refresh and the form be clea

PGConf US 2016 - free tickets for Django community members

2016-03-19 Thread Daniele Procida
The organisers of PGConf US 2016, the biggest Postgres conference in the world, have offered five full conference tickets worth US$439.00 each to the Django community. Daniele -- You received this message because you are subsc

Re: Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Bill Freeman
As far as learning python goes, especially if you already program in another language, the tutorials at docs.python.org are quite good. If you are using python 2 instead of python 3, note the "Docs for other versions" section in the top of the left hand column. If you don't already program in som

Re: Django Newb Help

2016-03-19 Thread parker smith
I can modify position and look of the {{ form.to }} with {{ form.to }} tags and css but I don't think that's the intention... On Wednesday, 16 March 2016 16:45:31 UTC-7, parker smith wrote: > > Hello, > > I am working on the django by example book and in ch. 2 I am having issues > getting the re

Re: Unable to parse connection string: "" when using django cache

2016-03-19 Thread jorrit787
As an aside, it looks like you're including CommonMiddleware twice. -- 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

Re: Django Newb Help

2016-03-19 Thread parker smith
Okay I figured this one out on my own...I just added the following code... new_comment.save() comment_form = CommentForm() - #(I added this line and it's working properly now) else: comment_form = CommentForm() On Wednesday, 16 March 2016 16:45:31 UTC-7, parker smith wrote: > > Hell

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Outstanding answer, many thanks! This is exactly what i thought there must be :) Dne sobota 19. března 2016 2:43:31 UTC+1 Fred Stluka napsal(a): > > Stanislav (aka Stanley?), > > As my company motto says: "Glad to be of service!". > > I'm very impressed with Django. It's a mature product that d

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_

Re: advanced beginner / early intermediate Django users

2016-03-19 Thread René Fleschenberg
Hi, On Friday 18 March 2016 11:35:13 Becka R. wrote: > Some of the issues I really struggled with, and had blocks on included: > - deployment There are many different ways to deploy Django (or actually, Python/WSGI) applications. You have to chose the one that suits your case best. It might be

Re: Django Forms vs Angularjs

2016-03-19 Thread bobhaugen
Questions interspersed below: On Friday, March 18, 2016 at 11:38:59 AM UTC-5, Gorkem Tolan wrote: > > I am a new comer to Django. Last four weeks I have been working on web > application purely created with Django framework. > I realized that Django forms are very cumbersome to use. > What is

The way to remove UNIQUE of username field, user_auth table

2016-03-19 Thread toyamalee3
Hi. I have a question. I use python-social-auth. When I registered my facebook account on my APP, username field of user_auth got my name like "johnlennon". But it is said that username has to be UNIQUE. So, if someone who also has the name, johnlennon, the person cannot sigh up my APP. I tried

Re: PGConf US 2016 - free tickets for Django community members

2016-03-19 Thread Asif Saifuddin
The member should be a US citizen? On Thursday, March 17, 2016 at 5:45:27 AM UTC+6, Daniele Procida wrote: > > The organisers of PGConf US 2016, the biggest Postgres conference in the > world, have offered five full conference tickets worth US$439.00 each to > the Django community. > >

Re: unhashable type: 'dict'

2016-03-19 Thread Deepanshu Sagar
hello guys, On clicking "*Click here to login* " I was able to move my webpage to http://localhost:8000/login/ with "from django.contrib.auth.views.login" by entering the username and password, I am getting below error. "AttributeError: 'Manager' object has no

advanced beginner / early intermediate Django users

2016-03-19 Thread Becka R.
Hi there, This is less about solving a specific coding issue in Django, and more asking for input from other people who have hit walls in Django. I hope this is within the scope of what this list is used for, and if it isn't I apologize. I've now written a couple of Django CRUD applications

Re: Different choices values for a single field in inherited class

2016-03-19 Thread MadEng
Hello Moogly, $ wine/models.py: class ColorBase(models.Model): class Meta: abstract = true COLORS_CHOICHES = ( ("Red

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
This is exactly what im trying. But if i enter *{{ form.title }}* i get not the data to use in form, but whole: ** But as i study doc, there is no simple way like Django is providing in other part. So, maybe Fred's way is a good one (but quite strange) and still dont know how i will make Fiel

Re: unhashable type: 'dict'

2016-03-19 Thread Deepanshu Sagar
Yes, I got that working, thanks. :) On Tuesday, March 15, 2016 at 7:54:02 PM UTC+5:30, Bruno Barbosa wrote: > > you forgot the function name auth_views.logout as a second parameter as > mentioned above. > > try it: > url(r'^logout/$', *auth_views.logout*, {'next_page': 'boardgames_home'}, > nam

Re: Deploy Django to Heroku - Push rejected

2016-03-19 Thread Andreas Kuhne
Hi, You haven't created the app in the correct heroku way. You have to have a base django project structure. So the following changes I would suggest: 1. Use the standard layout for settings. So a settings.py file with the PRODUCTION settings in and it will find that file. Also make sure you have

widget form

2016-03-19 Thread Tony Peña
hi, if i got a form for example with 2 charfield, and bottom a check box how can i do if that checkbox is true appears the next other 2 charfields ?(maybe hide) this exist with some function on django-admin ? thanxs -- perl -le 's ffSfs.s fSf\x54\x6F\x6E\x79 \x50\x65\x6e\x61f.prin

Re: variable inside @media screen

2016-03-19 Thread stefania . demurtas
Actually It works, but there was somethin wrong in media query sizes. thx Rose Il giorno venerdì 11 marzo 2016 14:03:05 UTC+1, Rose ha scritto: > > Hi, > > I need to use "@media screen" to display different background image sizes. > I was able to reproduce the correct output by using this code

Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Santosh Srinivas
Hi Folks, I'm new to both Python and Django. I am looking for high quality video tutorials on Django and Python from your experience (paid is also fine). Please advise. Thank you. Santosh -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: MySql Memory tables doubt...

2016-03-19 Thread René Fleschenberg
Hi, On Wednesday 16 March 2016 12:58:17 Jose Galvan wrote: > I am developing a web site to make queries and create new entries in a > old Mysql order entry system so I need to use the Raw SQL django > functionality more than ORM. Are you sure that you cannot use the ORM? Maybe you can just use u

custom FORMAT_SETTINGS

2016-03-19 Thread Erik Stein
hello -- I'd like to extend Django's localized formats by my own defaults, using the FORMAT_MODULE_PATH setting, e.g. to have those: SHORT_DAY_ONLY_FORMAT = 'd.' SHORT_DAYMONTH_FORMAT = 'd.N.' DATE_RANGE_SEPARATOR = '–' Sadly, in django.utils.formats.get_format Django checks the hard coded

Re: MySql Memory tables doubt...

2016-03-19 Thread Jose Galvan
Thanks for your Answer Rene, Well you see.. tables were designed without Id primary key on it, instead tables use composed keys, ORM queries in Django are mostly based on an unique Id feature as Pk, this was the main reason for not to use ORM. And yes, tables are declared as manage=false, in fa

Re: Forms in Django

2016-03-19 Thread Fred Stluka
Stanislav, Try these: {{ form.title.value }} {{ form.title.label }} {{ form.title.errors }} etc. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Gla

Re: Error running Django tutorial

2016-03-19 Thread Ruth
Hi, I am getting the same problem, despite having include in my mysite\urls.py file. I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.3 LTS. Could it by a Python 2.7 problem? Thanks, Ruth On Wednesday, March 2, 2016 at 12:19:16 PM UTC-8, jorr...@gmail.com wrote: > > Glad you got it solved!!

Re: Forms in Django

2016-03-19 Thread Fred Stluka
Stanislav, Look at how you defined the fields of your Form class. You probably defined the phone field as something like: phone = forms.CharField( required = True, max_length = 50, label = u'Phone', ) Change it to: phone = forms.CharField( required = True, max_len

Re: Django Newbie - Tutorial Recommendations?

2016-03-19 Thread Anthony W Smith
On Friday, March 18, 2016 at 8:31:56 AM UTC-4, Santosh Srinivas wrote: > > Hi Folks, > > I'm new to both Python and Django. > I am looking for high quality video tutorials on Django and Python from > your experience (paid is also fine). > > Please advise. > > Thank you. > Santosh > -- You rece

Re: The way to remove UNIQUE of username field, user_auth table

2016-03-19 Thread monoBOT
usernames should be unique. that is common sense You should somehow differentiate one user from the other using his email address as username for example. this is a common approach you may have seen sometimes in the past. 2016-03-16 11:37 GMT+00:00 : > Hi. > I have a question. > > I use python-

Re: Forms in Django

2016-03-19 Thread Stanislav Vasko
Ufff, i hope there is another way. Something working so simple like passing data from View to Template with direct access like {{ company.name }} or {{ company.phone }}. I dont see the point why to modify Model and how it helps with styling form. -- You received this message because you are su