Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
Hi, Tom and rok! I didn't mean to start http server flame war, Apache obviously has it's upsides and we also use it. What I've proposed is a simple, albeit dirty, workaround to run non-forked Django 1.6 in production. For Django devs to be able to address the root of the issue and solve it

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread J. Paskaruk
I followed your directions, and the whole thing went off without a hitch. ARE YOU A WIZARD?! On Wed, Oct 16, 2013 at 5:25 PM, Robbie Scourou wrote: > Shutting up sir! :) > > One last thing to try: > > apt-get install python-dev > > Do that outside of virtualenv, then try it

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread J. Paskaruk
Heh, just realized I made an out-of-context comment. This problem is actually solved, but I'm currently also having trouble connecting to MySQL, and am discussing that in another thread. Forgot which thread I'm in. The potentially virtualenv-based problem is that python-mysqldb is installed, but

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Robbie Scourou
Shutting up sir! :) One last thing to try: apt-get install python-dev Do that outside of virtualenv, then try it installing mysql-python within the virtualenv. After that, I'm out of ideas. On Wed, Oct 16, 2013 at 8:21 PM, J. Paskaruk wrote: > > On Wed, Oct 16, 2013 at

Accessing related objects on model.clean()

2013-10-16 Thread Marc Aymerich
Yep, I'm writing some validation logic for a model that is being used in an admin inline form The model looks like this class Child(models.Model): parent = models.ForeignKey(Parent) def clean(self): super().clean() if self.parent.surname != self.surname:

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Dow Street
And just a reminder that you can certainly use virtualenv without virtualenvwrapper. Every env you create with virtualenv will have a script to activate that env located at envname/bin/activate. For example: Open your shell, cd to the desired directory, and create a new env: $ virtualenv

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Bill Freeman
virtualenv is, indeed, great stuff, and is unlikely to be your problem. On Wed, Oct 16, 2013 at 3:24 PM, J. Paskaruk wrote: > I will keep that in mind for sure - I'm always aware that there are little > subtleties like that all around me, waiting to trip me up, so when

Re: DJANGO and SOAP

2013-10-16 Thread Mario Gudelj
Go with suds from fedora. I found it easy to use and it's worked with every soap api I connect to. On 17/10/2013 1:18 AM, "Domagoj Kovač" wrote: > I actually need a client library, not server library. > > -- > You received this message because you are subscribed to the

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread J. Paskaruk
I will keep that in mind for sure - I'm always aware that there are little subtleties like that all around me, waiting to trip me up, so when someone explains one to me, I cleave to the info. I'm pretty paranoid about this kind of thing to begin with, which is why I removed it from the one when I

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread J. Paskaruk
On Wed, Oct 16, 2013 at 1:50 PM, Robbie Scourou wrote: > apt-get install libmysqlclient-dev Sorry, I'm running Linux Mint, very similar to your vaporators in most respects. Can you speak Bochi? Of course I can sir, it's like a second language to me. Ok, shut up, I'll take

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Robbie Scourou
Assuming you are using ubuntu/debian: apt-get install libmysqlclient-dev Should give you the mysql_config tool. I *think*. I ran into similar build problems when rebuilding a server recently. I think you'll also need the python-dev package too. Frustration with computers is normal, just stick

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread J. Paskaruk
Yah, nothing under mysql- with dev or devel. I'm getting a sort-of handle on the differences between Pip, Apt, etc, but it's all very confusing. I seem to have sqlite working, so I'm not worrying about this too much for the moment. I'm assuming that a few months from now I'll laugh at how much I'm

MySQL error when trying to run tests with utf8mb4 charset

2013-10-16 Thread fletch
Hello! I tried to run *./manage.py test *for the first time and I got the following error: *DatabaseError: (1071, 'Specified key was too long; max key length is 767 bytes')* Looking at the log in MySQL, it appears to be caused by this statement: CREATE TABLE `auth_customuser` ( `id`

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Bill Freeman
No, python-mysqldb-dbg is not related to the problem. ("dbg" is an abbreviation for debug, while "devel" or "dev" stands for I want to do software development to work with the main package" such as building the python connectory, the operation that got you your error message. When you pip

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Bill Freeman
Not strictly true. .bashrc will get run again in a sub-shell. For example, in your shell, you run a command, and that command is a shell script. A new shell is started to run that script. It inherits your environment variables. But it also runs .bashrc. That's usually not a problem, but

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread J. Paskaruk
I found a python-mysqldb-dbg in Synaptic, would that be it? Failing that, what would be the, umm, Pythonic way to reinstall MySQL? I'm also confused by the various names - in Synaptic I've got python-mysqldb installed, but there's also MySQL-Python, which I can't tell if that's the same package

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread J. Paskaruk
Ahh k. I took it out of .profile entirely and put it in .bashrc, so it should only be run the once. I'm the only significant user of this computer. Cheers! On Wed, Oct 16, 2013 at 11:45 AM, Bill Freeman wrote: > What I mean by "I don't know about sourceing

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Bill Freeman
If it's like PostgreSQL, it should have been installed somewhere when you installed MySQL. But if you installed it using an O/S package manager, rather than from source, the O/S vender may have "helpfully" excluded bits they don't think you need. Often this will require additionally installing a

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Bill Freeman
What I mean by "I don't know about sourceing virtualenvwrapper.sh" is that I don't know, and don't have the inclination to research, whether, having sourced the file in a shell, you should avoid sourcing it again in a sub-shell. What I mean by guard variables is that you could, at the end of your

Re: Registration in django

2013-10-16 Thread Nick Apostolakis
On 16/10/2013 05:24 μμ, Harjot Mann wrote: On Wed, Oct 16, 2013 at 7:26 PM, Jaimin Patel wrote: you will need to update the registration/forms.py in order to add any additional field. When you adding organization name or any other field you must be creating some kind of

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread J. Paskaruk
I ran: sudo find / -name 'mysql_config' and it didn't find it. Using the same search, I did find something from my home dir, so it seems that it's not actually installed, or rather.. argh. I've attempted every "this is how to install MySQL-python method I could find on the web, and it either

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread J. Paskaruk
That's the one, thank you so much! I saw in the comments of .profile that it would not be read if there was a .bashrc file present, so my next step was creating that file and putting those lines in it, but I'm very afraid of pooching my install. Noob, like I said. :> I have Aspergers, so I'm not

Re: Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Bill Freeman
If the program mysql_config is installed on your box, it may be installed in a directory that is not on your path. If you can find it on your box (try the locate and find commands), you can add the directory to your PATH by hand before running pip (or easy_install). It only needs to be there for

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Bill Freeman
The file you want (assuming that your shell is bash) is .bashrc because it is run every time a bash shell is started, even if it is not a login shell. Note, however, that settings that shouldn't be done multiple times, such as appending ":$HOME/bin" to the PATH, should be protected with an if so

Doing the basic tutorial, MySQL-python problems.

2013-10-16 Thread Jimmy Pants
I'm trying to do the "Writing Your first Django App" tutorial, and Django can't see MySQL-python, though it is installed globally. I'm not sure if this is a virtualenv problem or what. Outside of virtualenv: jimmy@lilly ~/mysite $ sudo pip install MySQL-python [sudo] password for jimmy:

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Jimmy Pants
Does gnome-terminal make sense to you in this context? I popped up "edit" on the terminal launcher and that's in the Application field. I would, theoretically, add whatever option for gnome-terminal specifies it as a login shell? Testing this, I added --login to the field, per

Re: DJANGO and SOAP

2013-10-16 Thread Bill Freeman
It is possible to use urllib2 to deal with headers and use lxml to create/parse bodies. More work, and no automatic WSDL processing, but fully general. I've had to go that way when the vendor on the other end did some not strictly legal SOAP things. ZSI used to be a good SOAP choice, but has

Re: having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Thomas Lockhart
On 10/16/13 8:29 AM, Jimmy Pants wrote: ...every time I open a terminal, that is. As I understand it, .profile is the file to edit in Linux Mint, and it does exist, with some basic code in it, in my home dir. So, per this tutorial

Iframe sandbox security

2013-10-16 Thread Robin Lery
I was planning to create an app where the users can create their own blog page and others can link it in my web, like facebook. And then, I thought about using iframe with the sandbox attribute to view the page with the safe filter in the template. So, is it safe to implement it in this way??? Or

having trouble with virtualenvwrapper - need to run 'source ~/.profile' every time.

2013-10-16 Thread Jimmy Pants
...every time I open a terminal, that is. As I understand it, .profile is the file to edit in Linux Mint, and it does exist, with some basic code in it, in my home dir. So, per this tutorial, I added the following to .profile:

Re: ImportError: cannot import name actions

2013-10-16 Thread Tom Evans
On Wed, Oct 16, 2013 at 3:20 PM, wrote: > Ouch! I should have read your post more carefully! If you don't have any > other options than to use Apache, you could run it as proxy to gunicorn. Or > you could use Nginx instead of Apache... What, precisely, is wrong with

Re: ImportError: cannot import name actions

2013-10-16 Thread rok
Hi, I am not a particular evangelist of one or the other but since we use apache+mod_wsgi for several apps throughout the company, we obviously want to stick with one, easier for deployment and maintenance. On Wednesday, October 16, 2013 5:17:35 PM UTC+2, Tom Evans wrote: > > On Wed, Oct 16,

Re: django summernote not working properly

2013-10-16 Thread Hyun-woo Park
Thank you for reporting. See http://stackoverflow.com/questions/19347067/django-summernote-not-working-properly/19406459#19406459 2013년 10월 14일 월요일 오전 1시 8분 28초 UTC+9, Kakar 님의 말: > > I am using django-summernote as a > wysiwyg editor. And till now, I

Re: DJANGO and SOAP

2013-10-16 Thread Jaimin Patel
Does any of two library mentioned in this SO answers helps - http://stackoverflow.com/questions/5167122/django-as-soap-web-service-server? On Wednesday, October 16, 2013 5:59:21 AM UTC-4, Domagoj Kovač wrote: > > Hi everyone, > > I have a problem. For the past few days i have been looking for

Re: Registration in django

2013-10-16 Thread Harjot Mann
On Wed, Oct 16, 2013 at 7:26 PM, Jaimin Patel wrote: > you will need to update the registration/forms.py in order to add any > additional field. When you adding organization name or any other field you > must be creating some kind of profile for the user, so you should be

Re: Django ORM generating the wrong query for recent friends of an user

2013-10-16 Thread Arthur Silva
I still can't find the problem. Django isn't using the same "friendship" joined table for both conditions which makes me wonder if it's related to this https://docs.djangoproject.com/en/1.5/topics/db/queries/#spanning-multi-valued-relationships Please help. On Tuesday, September 24, 2013

Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
On Wednesday, October 16, 2013 4:18:13 PM UTC+4, rok wrote: > > Hi Ivan, thanks for the response. No. we are not using gunicorn, just > apache+mod_wsgi. > > moreover, I configured WSGIDaemon option for the host to separate it from > the rest of the system and still no luck. > > Rok > > On

Re: DJANGO and SOAP

2013-10-16 Thread Domagoj Kovač
I actually need a client library, not server library. -- 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

Re: Django data to Javascript

2013-10-16 Thread Bill Freeman
On Wed, Oct 16, 2013 at 3:39 AM, drakko wrote: > ... > > But accessing should_have_found_list in template has no problems. I have > separate JS file that contains functions (event handlers for buttons etc.). > I can't figure out (total newbie in JS :D ) how to access (or

Re: DJANGO and SOAP

2013-10-16 Thread Jaimin Patel
This might help - http://stackoverflow.com/questions/5167122/django-as-soap-web-service-server On Wednesday, October 16, 2013 5:59:21 AM UTC-4, Domagoj Kovač wrote: > > Hi everyone, > > I have a problem. For the past few days i have been looking for some good > SOAP client library and i did not

Re: Registration in django

2013-10-16 Thread Jaimin Patel
you will need to update the registration/forms.py in order to add any additional field. When you adding organization name or any other field you must be creating some kind of profile for the user, so you should be able to store and retrieve the information to display on dashboard or anywhere

Registration in django

2013-10-16 Thread Harjot Mann
I am using django-registration in my app and I implemented it correctly but I want to add an another field in it like I want to have the organization name from user and that name I want to display in the dashboard of user. What should I need to do for it? and what if I dont want to use the

Re: Image browsing in django

2013-10-16 Thread Skyler Dawson
Hi Harjot, First, I noticed your form action is empty (""). Depending on your browser, this can mean different things (some browsers take it as an action that gets sent back to the index page), as described in this answer on stackoverflow:

Re: SQL cast for custom model lookup

2013-10-16 Thread Aryeh Leib Taurog
On Tue, Oct 15, 2013 at 10:20:08PM +0200, Aryeh Leib Taurog wrote: > I'm working with > and I'm wondering if there's a way to get django to add an explicit > cast to the SQL generated for field lookups. > > I have a model that looks like this: > >

Re: def altword_list(self, request, word_id):

2013-10-16 Thread Pepsodent Cola
Hi Leo, Most of what you describe looks familiar, but I'm not 100% sure that what you say is what I'm trying to do. One thing you said though stands out which was new to me, which was the difference between ListViews and DetailViews. I'm not very experienced with those and thus don't understand

Re: ImportError: cannot import name actions

2013-10-16 Thread rok
Hi Ivan, thanks for the response. No. we are not using gunicorn, just apache+mod_wsgi. moreover, I configured WSGIDaemon option for the host to separate it from the rest of the system and still no luck. Rok On Wednesday, October 16, 2013 9:39:28 AM UTC+2, the.pa...@gmail.com wrote: > > Hi! >

Re: ImportError: cannot import name actions

2013-10-16 Thread the . paper . men
Hi! Original Message Subject: Re: ImportError: cannot import name actions Date: Wed, 16 Oct 2013 11:26:33 +0400 From: Ivan Kharlamov To: django-develop...@googlegroups.com On 10/15/2013 04:56 PM, rok wrote: > I have recently been testing the 1.6b4 tag

Re: def altword_list(self, request, word_id):

2013-10-16 Thread Leonardo Giordani
Well, I tried to understand the code. Correct me if I did not understand it: * you are calling AltwordlistView from r'^altword_list/(?P\d+)/$ * being a DetailedView on Altword, AltwordlistView extracts the Altword with the given pk with a query like Altword.objects.get(pk=pk) * you set the

DJANGO and SOAP

2013-10-16 Thread Domagoj Kovač
Hi everyone, I have a problem. For the past few days i have been looking for some good SOAP client library and i did not found anything that works properly. The problem is that i have some recursive SOAP function and as i saw, suds has the problem with this types of things, some other

Re: Image browsing in django

2013-10-16 Thread Mario Gudelj
I reckon you're not passing request.FILES to your form class together with request.POST inside your view. Hopefully that's enough info. Typing from a phone. On 16/10/2013 6:46 PM, "Harjot Mann" wrote: > On Wed, Oct 16, 2013 at 1:06 PM, Harjot Mann

Re: Image browsing in django

2013-10-16 Thread Harjot Mann
On Wed, Oct 16, 2013 at 1:06 PM, Harjot Mann wrote: > > No same problem,please help me...please help me...please help me..I > have posted this mail 5 days ago and no one is able to solve my > problem. :( I am really disappointed :( Please tell me the solution. I have

Re: New to Django

2013-10-16 Thread Sithembewena Lloyd Dube
Hey guys, For those asking how to setup databases with Django, all this is covered in the section on how to install Django on the main website. https://docs.djangoproject.com/en/1.5/intro/install/ and, more specifically, https://docs.djangoproject.com/en/1.5/topics/install/#database-installation

Re: Django data to Javascript

2013-10-16 Thread drakko
Thanks for help. I will try some of these ideas :) I don't understand why you are JSON encoding form.field_mapping for the > fields template variable. > This was like that when I got this code. I am just continuing to develop this app. But accessing should_have_found_list in template has no

Re: Image browsing in django

2013-10-16 Thread Harjot Mann
On Wed, Oct 16, 2013 at 12:51 PM, Sanjay Bhangar wrote: > It is enctype='multipart/form-data' and not encoding='multipart/form-data' > > Hope that helps - all the best, > Sanjay No same problem,please help me...please help me...please help me..I have posted this mail 5

Re: New to Django

2013-10-16 Thread Nigel Legg
Yes - there is a section in the tutorials and documentation on connecting to databases, including PostgreSQL. Cheers, Nigel 07914 740972 On 16 October 2013 04:04, Bryan Kim Artificio wrote: > HI, > > good day! > > i would like to know id there's a way to connect

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

Re: deploy ?

2013-10-16 Thread Diogene Laerce
You can use nxinx with uwsgi even with several domain names, nginx takes care of that, you just run several uwsgi/gunicorn processes on different tcp ports or unix sockets, and nginx will just select the one that fits for its domain name (set in config) of course you need to set it