Tagged Questions
0
votes
1answer
14 views
Can't Run MySQL db on Django
I encounter an error when I run
python manage.py syncdb
...
File "/Users/Marcus/Documents/Django/venv/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 17, in <module>
...
0
votes
0answers
8 views
Allowing null value in Peewee
I'm trying to allow null values in some columns of a MySQL database using peewee with bottle. Looking at the docs here I thought that would be quite easy. I set up a class like this:
class ...
0
votes
0answers
10 views
Need help in Building search engine( like real time search) in python using whoosh
I'm new to python programming , i'm interested in building search engine using whoosh. pleasee kindly help me how to start implementing and if possible give me sample code for all the modules in ...
1
vote
1answer
20 views
Django - executing queries in save method
The following code:
>>> from mainapp.models import ServerType
>>> server_type = ServerType()
>>> server_type.name = 'Origin'
>>> server_type.save()
>>> ...
4
votes
1answer
34 views
Django 1.5 raises UnicodeDecodeError when persisting uploaded file
This problem started occurring when I updated my project's django version to 1.5.x.
My problem is that when using mysql as a backend and I upload a file and attempt to save the chunks of that file ...
1
vote
1answer
39 views
Python TypeError: cannot concatenate 'str' and 'long' objects
I have few User provided information like username, password, email, etc. that user provides in a config file.
I have the parsed data from the config file using configParser module.
I want to enter ...
-1
votes
0answers
30 views
Database Searching function using Plone + MySQL
I successfully made the inserting, updating and deleting data in Plone using MySql database.
Drop down menu thing that i used for inserting, updating and deleting in Plone and MySql:
Z Mysql database ...
1
vote
2answers
44 views
How can I append whole columns to a table (list of lists) in python?
Given tuples like the following which are generated from mysql fetchall calls in a loop...
tuple1 = (('doug', 6), ('fred', 9), ('garth', 3))
tuple2 = (('steve', 3), ('dan', 1))
tuple3 = (('alan', ...
0
votes
2answers
54 views
MySQL for Python 2.7 [on hold]
I'm looking for a tool to use MySQL with Python 2.7 under Windows 7 64 bits.
I searched a little bit a found these :
MySQLdb - _http://sourceforge.net/projects/mysql-python/
SQLAlchemy - ...
0
votes
1answer
18 views
How to change UserDoesNotExist SELECT behavior in Flask-peewee - python & mysql
Im using flask-peewee to make an API and I'd like to return back a 404 json if user doesn't exist in the table but seems like it's throwing 500 error instead of 404 error json:
Here is the Error I'm ...
0
votes
0answers
44 views
Dynamic page on python without frameworks
Tell me please how i can make dynamic page with python 3.3 + cgi + apache + mysql without any frameworks?
For my little task i need to handle GET request like a:
/index.py?what=data&from=data
...
0
votes
1answer
33 views
Can't make dump work
I'm trying to upload my database to pythonanywhere, I'm using the console to make the upload, but I can't I been trying a lot of thing, but I always get a syntax error.
my command looks like this:
...
1
vote
1answer
17 views
Sqlalchemy + mysql, incremental key reuse
i have an api-key that i need to assign to users, they need to be unique per user, but may be reused starting as 0 [0,1,2,3,4,5...] but they have a limit, and it's feature-specific (not all users need ...
0
votes
0answers
22 views
Scrapy: return self._values[key] exceptions.KeyError: 'hour'
This is my pipelines.py
def process_item(self, item, spider):
# run db query in thread pool
query = self.dbpool.runInteraction(self._conditional_insert, item)
...
2
votes
0answers
46 views
random user can access mysql db
I'm writing an app on python and MySQL(MySQLdb, PyQT) and an faced an issue.
I so happened that when a random value entered on login form this random user have some access to the db. This user cannot ...