Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Kelvin Wong
You are mixing the repos (remi and the regular redhat one). You should decide which one you want to use for mysql and stick to it. The remi repo has the devel package available http://rpms.famillecollet.com/enterprise/6/remi/x86_64/repoview/applications.databases.group.html You can isolate a re

Re: Accessing Request Object in Form Definition

2016-02-22 Thread James Schneider
On Mon, Feb 22, 2016 at 10:23 PM, Chris Kavanagh wrote: > To possibly answer my own question, thinking out loud, we have to override > the Form Constructor so we can pass in the Request from the view when > instantiating the Form? > You beat me to it. Yes, you would need to override __init__() t

Re: Accessing Request Object in Form Definition

2016-02-22 Thread Chris Kavanagh
To possibly answer my own question, thinking out loud, we have to override the Form Constructor so we can pass in the Request from the view when instantiating the Form? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
Not really sure what I am looking for or what to do. # yum list installed | grep mysql compat-mysql51.x86_64 5.1.54-1.el6.remi @remi mysql.x86_645.5.44-1.el6.remi @remi mysql-libs.x86_64 5.5.44-1.el6.remi @remi mysql-server.x86_64

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Kelvin Wong
You need to locate the header files in order for that to compile. You might want to see if they are located somewhere on your system by using 'find' or else check 'yum list installed' to see if you have already installed the mysql devel package for your version of the database server (i'm guess

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
That failed: # yum install mysql-devel Loaded plugins: dellsysid, product-id, refresh-packagekit, security, subscription-manager Setting up Install Process Package mysql-devel is obsoleted by mysql-community-devel, trying to install mysql-community-devel-5.7.11-1.el6.x86_64 instead Resolving Depen

Re: Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Kelvin Wong
Install the MariaDB/MySQL header files. # yum install mysql-devel or # yum install MariaDB.devel Depends on what fork you are planning on running K On Monday, February 22, 2016 at 6:17:58 PM UTC-8, larry@gmail.com wrote: > > Not strictly a django question, but it's something required to

Installing MySQLdb for python2.7 in RHEL 6

2016-02-22 Thread Larry Martell
Not strictly a django question, but it's something required to get django running. I am trying to get django 1.9 running in RHEL 6. I have installed python2.7 and when I try to install MySQLdb, I get the errors shown below. I have googled and googled and tried many different things, all with no su

Accessing Request Object in Form Definition

2016-02-22 Thread Chris Kavanagh
I'm trying to understand how overriding the Constructor of a Form (forms.Form or model.Models) allows you to access the Request Object? How does overriding __init__ allow one access to the Request? I've looked at BaseForm and don't see the Request in the Constructor. So, I don't get it. I thoug

Re: Django authentication

2016-02-22 Thread James Schneider
On Mon, Feb 22, 2016 at 5:36 AM, Wilfreid Mpunia wrote: > Good day, I have the following question. > I'm still learning and improving my django level, but I'm a bite confused > with a project that I'm working on. > > For a django web app, which requires a user to register with their email > and p

Re: crispy form styling of unconventional upload mechanism

2016-02-22 Thread James Schneider
> > I just need to know how I centre the text in the middle of my page... I > can't believe that it could be this complicated > Another idea you can try is wrapping your ButtonHolder inside of a Div() like Div(ButtonHolder(...), css_class='text-center') to center the whole group, or just wrapp

Re: crispy form styling of unconventional upload mechanism

2016-02-22 Thread James Schneider
On Feb 22, 2016 2:58 PM, wrote: > > I have made an upload form button, that I need to be able to refers to tin my css code such that I can centre it on the web page. However the upload button is not constituted by any bootstrap like "btn" syntax, which is prevalent in example code. Instead is cons

crispy form styling of unconventional upload mechanism

2016-02-22 Thread clarksonchris81
I have made an upload form button, that I need to be able to refers to tin my css code such that I can centre it on the web page. However the upload button is not constituted by any bootstrap like "btn" syntax, which is prevalent in example code. Instead is constituted by the following code:

Re: key specification without a key length

2016-02-22 Thread Mike Dewhirst
On 23/02/2016 6:37 AM, Sammi Singh wrote: Thanks Mike, I'm using models and I made the changes like you suggested but I'm still getting the same error *id = models.CharField(max_length=99, primary_key=True)* That was a stab in the dark trying to indicate to you that a text field is inapp

Re: mathematical function and django connect

2016-02-22 Thread Xristos Xristoou
the problem in the html form we need to change second input to take multiple values,for example first input take a number and the second input take many numbers..if the first number = 2 then take second input two numbers,two fields for input i try this but not work orm action="" method="POST">{%

Re: key specification without a key length

2016-02-22 Thread Sammi Singh
Thanks Mike, I'm using models and I made the changes like you suggested but I'm still getting the same error *id = models.CharField(max_length=99, primary_key=True)* *python manage.py makemigrations talk* *Migrations for 'talk':* *0008_auto_20160222_1925.py*: - Remove field ids fro

Re: Possible Bug when using exclude on a GenericForeignKey / GenericRelation query.

2016-02-22 Thread Tim Graham
The crash is probably a bug: https://code.djangoproject.com/ticket/26261 On Friday, August 14, 2015 at 5:01:30 PM UTC-4, Daniel H wrote: > > Hi everyone. > > I've been using django for almost a year now, but it's my first time > posting here. > > Anyway, I'm encountering an error which I think mi

Re: form as filter in admin site

2016-02-22 Thread Luis Zárate
I need something like this, of course magic is in FormFilter :), so I am lookig for something in admin app with this behaivor class MatriculaForm(forms.Form): # I am using django-ajax-selects, lookups are out of scope disciplina = AutoCompleteSelectMultipleField('disciplinas',

Re: Migrate Data from Django 1.4 to Django 1.8

2016-02-22 Thread Andreas Kuhne
Hi, I did that a while back, I wrote my own SQL migration script that we tested with the production database in development. I think that would be the only way. Django doesn't know of the changes that you have made in your database models. However if you had started with the production database an

Migrate Data from Django 1.4 to Django 1.8

2016-02-22 Thread Mayur Tanna
Hi, We have migrated the Django 1.4 application to Django 1.8 successfully. The Django 1.4 version of applicaiton is still in use in production until we go live with Django 1.8. The problem is that lots of data have been updated on production server which needs to be migrated to 1.8 version

Re: Django authentication

2016-02-22 Thread Wilfreid Mpunia
why if I may ask On Monday, February 22, 2016 at 4:24:05 PM UTC+2, Avraham Serour wrote: > > AFAIK DRF uses the django auth > > On Mon, Feb 22, 2016 at 3:36 PM, Wilfreid Mpunia > wrote: > >> Good day, I have the following question. >> I'm still learning and improving my django level, but I'm a bi

Re: Django authentication

2016-02-22 Thread Avraham Serour
AFAIK DRF uses the django auth On Mon, Feb 22, 2016 at 3:36 PM, Wilfreid Mpunia wrote: > Good day, I have the following question. > I'm still learning and improving my django level, but I'm a bite confused > with a project that I'm working on. > > For a django web app, which requires a user to r

Re: Invoke not right worked

2016-02-22 Thread Seti Volkylany
Almost all worked http://eugenelysenko.pythonanywhere.com/ Thank you very much On Sun, Feb 21, 2016 at 10:55 PM, James Schneider wrote: > On Sun, Feb 21, 2016 at 12:25 PM, wrote: > >> >> *my file with invoke-task (tasks.py)* >> . >> from

Django authentication

2016-02-22 Thread Wilfreid Mpunia
Good day, I have the following question. I'm still learning and improving my django level, but I'm a bite confused with a project that I'm working on. For a django web app, which requires a user to register with their email and password, I used the custom user and backend as shown the djangoproj

Re: mathematical function and django connect

2016-02-22 Thread James Schneider
On Sun, Feb 21, 2016 at 9:33 PM, Xristos Xristoou wrote: > i find it,just add return render_to_response('blog/calc.html', {'a' > :a},context_instance=RequestContext(request)) > and dont show me that error,but not work again > now if i touch calc button just reload dont show me error dont show me