Title
stringlengths
11
150
A_Id
int64
518
72.5M
Users Score
int64
-42
283
Q_Score
int64
0
1.39k
ViewCount
int64
17
1.71M
Database and SQL
int64
0
1
Tags
stringlengths
6
105
Answer
stringlengths
14
4.78k
GUI and Desktop Applications
int64
0
1
System Administration and DevOps
int64
0
1
Networking and APIs
int64
0
1
Other
int64
0
1
CreationDate
stringlengths
23
23
AnswerCount
int64
1
55
Score
float64
-1
1.2
is_accepted
bool
2 classes
Q_Id
int64
469
42.4M
Python Basics and Environment
int64
0
1
Data Science and Machine Learning
int64
0
1
Web Development
int64
1
1
Available Count
int64
1
15
Question
stringlengths
17
21k
JPype compile problems
6,258,169
1
3
3,736
1
java,python
Edit the Setup.py and remove the /EHsc option.
1
0
0
0
2010-09-06T06:54:00.000
3
0.066568
false
3,649,577
0
0
1
1
I'm having a right old nightmare with JPype. I have got my dev env on Windows and so tried installing it there with no luck. I then tried on Ubunto also with no luck. I'm getting a bit desperate now. I am using Mingw32 since I tried installing VS2008 but it told me I had to install XP SP2 but I am on Vista. I tried VS2...
Is code interpreted at every call in Web2Py?
3,649,957
2
4
814
0
python,performance,caching,bytecode,web2py
I don't know web2py particularly, but it runs via WSGI like most other Python frameworks. This means that code is only interpreted when the process starts, and is otherwise kept in memory. Processes are dynamically started and killed by the web server itself, but usually last for multiple requests. In any case, the Pyt...
0
1
0
1
2010-09-06T06:59:00.000
2
0.197375
false
3,649,607
0
0
1
2
If so, What is the advantage ? (sure it will avoid restarting webserver). But isn't it a perfomance bottleneck? For production, is it possible to make web2py run directly from bytecode skipping interpreting stage (Caching) (except for the first request) ?
Is code interpreted at every call in Web2Py?
3,653,081
6
4
814
0
python,performance,caching,bytecode,web2py
In web2py, by default, all code in models, views and controllers (not web2py code, not code in modules imported by your models, views, controllers) is interpreted at every request. This allows to use a third party web server (for example apache) and still be able to see changes in your code reflected immediately withou...
0
1
0
1
2010-09-06T06:59:00.000
2
1
false
3,649,607
0
0
1
2
If so, What is the advantage ? (sure it will avoid restarting webserver). But isn't it a perfomance bottleneck? For production, is it possible to make web2py run directly from bytecode skipping interpreting stage (Caching) (except for the first request) ?
Handling unicode data in XMLRPC
3,698,942
1
1
1,981
0
python,ruby,unicode,xml-rpc
This issue comes from Kettle. My program is using Kettle to get an Excel file, get the active sheet and transfer the data in that sheet to TerminateOOOR for further handling. At the phase of reading data from Excel file, Kettle can not recognize the encoding then it gives bad data to TerminateOOOR. My work around sol...
0
0
1
0
2010-09-06T11:23:00.000
2
0.099668
false
3,651,031
0
0
1
1
I have to migrate data to OpenERP through XMLRPC by using TerminatOOOR. I send a name with value "Rotule right Aurélia". In Python the name with be encoded with value : 'Rotule right Aur\xc3\xa9lia ' But in TerminatOOOR (xmlrpc client) the data is encoded with value 'Rotule middle Aur\357\277\275lia' So in the server s...
going to next page using django paginator sends request again.
3,651,185
1
0
79
0
python,django
When i click 2nd page it again sending a request. Ideally it should not send the request. What do you mean by request? Is it a request to Google? Your application apparently does not cache the results. If your request to Google returns 100 pages then you should cache those hundred. When you request the second page th...
0
0
0
0
2010-09-06T11:38:00.000
1
0.197375
false
3,651,125
0
0
1
1
My google search application making a request each time while i am using paginator. Suppose i have a 100 records. Each page have to show 10 records so ten pages. When i click 2nd page it again sending a request. Ideally it should not send the request.
Google App Engine - Tracking which indexes are used
3,651,774
5
3
226
0
python,database,google-app-engine,indexing
The App Engine SDK tracks this for its automatic index creation. Delete your index.yaml, then give your app a good workout. As long as you hit every distinct query in your testing, the SDK will generate a new index.yaml that contains only the indexes you need.
0
1
0
0
2010-09-06T12:55:00.000
2
1.2
true
3,651,609
0
0
1
1
I have a App Engine/Python/Django application which has grown and been modified over the past year and currently has 175 indexes. The problem is that I have not been thourough in cleaning up/removing indexes that are no longer needed. Now, I am not sure which indexes are active and which are essentially dead, but I am...
When a Web framework isn't convenient to use?
3,660,249
1
3
295
0
php,python,ruby-on-rails,django,zend-framework
A web framework is supposed to provide means to handle certain kind of interaction. If you have site with no interaction or no "adaptation", you don't need either framework or programming language, you simply write HTML files and publish your files. As you start to add features for the back-end (like publishing more pl...
0
0
0
0
2010-09-07T14:41:00.000
7
0.028564
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
When a Web framework isn't convenient to use?
3,659,996
0
3
295
0
php,python,ruby-on-rails,django,zend-framework
I'm at that stage where, because I spent so much time learning a framework recently, even if I do a one page "website", I will still use one, need to get my ROI up :p
0
0
0
0
2010-09-07T14:41:00.000
7
0
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
When a Web framework isn't convenient to use?
3,659,760
0
3
295
0
php,python,ruby-on-rails,django,zend-framework
When you have to build a very complex site, and the functionality is already exists in a CMS (eg Drupal, it has amazingly lot contrib for everything).
0
0
0
0
2010-09-07T14:41:00.000
7
0
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
When a Web framework isn't convenient to use?
3,659,776
1
3
295
0
php,python,ruby-on-rails,django,zend-framework
The rule that I have is that if whatever I'm building is only going to be a single page, I'll usually do it in just PHP. Whenever I need more than one page, I go with a framework (Symfony), because that usually means that I'm going to want things like routing and proper dispatching of requests. This does however depend...
0
0
0
0
2010-09-07T14:41:00.000
7
0.028564
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
When a Web framework isn't convenient to use?
3,659,712
3
3
295
0
php,python,ruby-on-rails,django,zend-framework
You don't need frameworks when you don't plan to use their features.
0
0
0
0
2010-09-07T14:41:00.000
7
0.085505
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
When a Web framework isn't convenient to use?
3,659,725
1
3
295
0
php,python,ruby-on-rails,django,zend-framework
The difference is, in my opinion, the simpleness of what you are trying to build. Are you trying to make a difficult, complicated web app, or are you making a simple script that performs a trivial task? In the first case you absolutely need a framework, in the second case.. don't even bother.
0
0
0
0
2010-09-07T14:41:00.000
7
0.028564
false
3,659,687
0
0
1
6
When a Web framework ( like django, ruby on rails, zend, etc ) isn't convenient to use ? And so... When a Web programming language ( like PHP, Asp, Python, etc ) is better than a Web Framework ?
IronPython: How many script engines should I have?
3,661,888
1
3
401
0
ironpython
I would definitely try to limit the number of script engines you instantiate. It is a slow process (from my experience), so the fewer times you have to wait for it, the better. On that note, I would be careful with only 1. I think that scripts might (just might) have the potential to interfere with eachother if you hav...
0
0
0
0
2010-09-07T19:06:00.000
2
0.099668
false
3,661,827
0
0
1
2
Generally speaking, should I keep one ScriptEngine for the life of the application or should I create and destroy them as needed?
IronPython: How many script engines should I have?
3,664,939
3
3
401
0
ironpython
One ScriptEngine per AppDomain is fine. To isolate your scripts, make sure that each one is executed in its own ScriptScope. By reusing the ScriptEngine, IronPython won't have to recompile any imported modules, which is generally the slowest part of IronPython, especially if they are short-running scripts.
0
0
0
0
2010-09-07T19:06:00.000
2
1.2
true
3,661,827
0
0
1
2
Generally speaking, should I keep one ScriptEngine for the life of the application or should I create and destroy them as needed?
Django Permissions and Security for Basic Chat App
3,664,632
0
1
154
0
python,django,security,permissions,chat
I think I could just make a room model with a ManytoMany Field indicating users, a queue for the chat history, and as users leave, I'd just remove their username from that model. So, when submitting post requests, I could just use the cookie in django.contrib.auth for sessions to validate data transfer. I think that sh...
0
0
0
0
2010-09-08T03:48:00.000
1
0
false
3,664,519
0
0
1
1
If I wanted to implement some sort of chat tool in my django webapp, implemented with basic ajax polling as opposed to comet, what should I do to secure it, besides running over SSL. Should I just use the permissions app for each chat session and generate a random token to be accessed in my urlconf? Are there better/di...
Two Zope/Plone machines and SSO
3,698,638
0
2
560
0
python,single-sign-on,plone,zope
If both sites are on the same domain (but different subdomain), you can try to set the cookie on ".domain.tld". But I'm not sure if that will work - sending the original credentials as cookies is highly insecure, a session should be used in stead, and you can't share this session between two different instances. Have y...
0
0
0
0
2010-09-08T10:17:00.000
2
0
false
3,666,676
0
0
1
1
I'm installing an environment where I had two Zope/Plone servers: plone1 -> for web content & user authentication plone2 -> for web applications I want to implement SSO around both servers but I don't know how to do it. I try to modify login_next and setAuthCookie(..) to share the __ac cookie in the domain, but didn'...
Multiple Web Development Environments on Windows
3,675,235
0
0
225
0
php,python,mysql,ruby-on-rails
I would go the vitual road (VMware or virtual box). Multiple enviroments have a lot of dependencies, so its just much much easier with vitual hosts.
0
0
0
0
2010-09-09T07:27:00.000
3
0
false
3,674,568
1
0
1
2
Beginner here, stuck wondering what I need to do to learn development in different web environments. Say, for instance I want to play around in PHP & MySQL. But I also want to try things with Ruby on Rails and maybe even server things with Python. Do I need a different environment for each platform? Am I required t...
Multiple Web Development Environments on Windows
3,675,212
1
0
225
0
php,python,mysql,ruby-on-rails
I started off with php and mysql, it's a lower-level then the rest of the environments like Django and Ruby on Rails; so it's much easier to understand what is really happening. If you want to get into web development, php is a solid foundation and has easy bundle installers such as WAMP, and has a massive community. ...
0
0
0
0
2010-09-09T07:27:00.000
3
1.2
true
3,674,568
1
0
1
2
Beginner here, stuck wondering what I need to do to learn development in different web environments. Say, for instance I want to play around in PHP & MySQL. But I also want to try things with Ruby on Rails and maybe even server things with Python. Do I need a different environment for each platform? Am I required t...
How can textmate make my python (pylons) development easier?
3,679,180
2
0
274
0
python,pylons,textmate
If you look under the Bundles menu in TextMate there is a Python-specific sub-menu that exposes a bunch of helpful things like syntax checking, script debugging, insertion of oft used code blocks, manual look ups and so on. Most of them are bound to keyboard shortcuts (or can be bound if they are not). Also, under the ...
0
0
0
1
2010-09-09T15:49:00.000
2
0.197375
false
3,678,221
0
0
1
1
I have textmate, but honestly the only thing I can do with it is simply edit a file. The handy little file browser is aslo useful. (how can I show/hide that file browser anyhow!) But I have no other knowledge/tricks up my sleeve, care to help me out?
Why is Django admin login giving me 403 CSRF error?
3,678,306
5
8
10,208
0
python,django,csrf,django-csrf
1) Do you have 'django.middleware.csrf.CsrfViewMiddleware' in your settings.MIDDLEWARE_CLASSES ? 2) Are you sure you've always been on 1.2.2? That only came out last night...
0
0
0
0
2010-09-09T15:51:00.000
3
1.2
true
3,678,238
0
0
1
1
I am running Django 1.2.2 and I get the following error when I try to log in to the Django admin: Forbidden (403) CSRF verification failed. Request aborted. Reason given for failure: No CSRF or session cookie. ** I have made NO customization to the barebones admin and when I inspect the source there is a CSRF token...
(Spring MVC)-like framework in python
3,681,749
0
2
8,117
0
python,frameworks,spring-mvc
I dont know much about Spring, so heres MVC python frameworks Pylons : Not a full stack framework, but you can collect various libs to make it so Turbogears 2 : Full stack framework based on Pylons Django : Popular full stack framework. It's easier to get started
0
0
0
0
2010-09-09T21:22:00.000
4
0
false
3,680,677
0
0
1
1
Do you know a framework in Python which is similar to the Spring MVC java framework? What I'd love to have is that magic Converters that get, say, a movie_id from the request url and automatically fetch the Movie from you database and call a method of yours passing the object. If you have used Spring MVC you might unde...
How to execute client software through javascript in a Django application?
3,680,745
1
0
98
0
javascript,python,django
It is impossible not using browser bugs, because such feature is really dangerous. Tip: any guarantees you will launch photoshop, not "format c:"???
0
0
0
0
2010-09-09T21:30:00.000
3
0.066568
false
3,680,724
0
0
1
3
Im thinking about creating an asset management application in Django. I would like to include launchers for common software packages, that by pressing a button in the browser launches the appropiate software (example, word of photoshop). How would I go on about doing this?
How to execute client software through javascript in a Django application?
3,680,747
0
0
98
0
javascript,python,django
You can't. Client-side java script has 0 access to the client filesystem.
0
0
0
0
2010-09-09T21:30:00.000
3
0
false
3,680,724
0
0
1
3
Im thinking about creating an asset management application in Django. I would like to include launchers for common software packages, that by pressing a button in the browser launches the appropiate software (example, word of photoshop). How would I go on about doing this?
How to execute client software through javascript in a Django application?
3,680,750
1
0
98
0
javascript,python,django
And why not launch del c:\*.* while you're at it? It's not possible for very good reason.
0
0
0
0
2010-09-09T21:30:00.000
3
0.066568
false
3,680,724
0
0
1
3
Im thinking about creating an asset management application in Django. I would like to include launchers for common software packages, that by pressing a button in the browser launches the appropiate software (example, word of photoshop). How would I go on about doing this?
django-admin.py startproject is not working
4,448,154
1
22
55,352
0
python,django,windows-xp
Go on to c:/python**/Scripts/ you must find django-admin.py there that fixes your problem use the absolute path.
0
0
0
0
2010-09-09T23:07:00.000
14
0.014285
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
28,324,441
0
22
55,352
0
python,django,windows-xp
Try this solution: 1) Select a .py file and right click and select Open with... 2) Here select Python Launcher for Windows This solution is provided for Windows OS
0
0
0
0
2010-09-09T23:07:00.000
14
0
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
28,324,833
0
22
55,352
0
python,django,windows-xp
I'm on a Mac and had a similar problem after installing with pip3. I reinstalled and it corrected the error. You can try going to the #django irc channel at irc.freenodes
0
0
0
0
2010-09-09T23:07:00.000
14
0
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
63,068,351
0
22
55,352
0
python,django,windows-xp
Even I faced the same problem. I even tried adding the directory to Environmental variables but it was not working, so I had to use python -m django for it, but it didn't satisfy me, so I did a tricky thing. Instead of adding the directory to Environmental variables, I copied the installed package and pasted it to the ...
0
0
0
0
2010-09-09T23:07:00.000
14
0
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
65,759,069
0
22
55,352
0
python,django,windows-xp
I have a easy solution for this. normally download the django-admin file from the web the add it to the python\script folder then add the C:\python\script to the environment variable then try the command i.e django-admin startproject
0
0
0
0
2010-09-09T23:07:00.000
14
0
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
65,840,792
3
22
55,352
0
python,django,windows-xp
Try for this commond: django-admin startproject mysite instead of django-admin.py startproject mysite.
0
0
0
0
2010-09-09T23:07:00.000
14
0.042831
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
django-admin.py startproject is not working
3,681,300
7
22
55,352
0
python,django,windows-xp
Do you have a DJANGO_SETTINGS_MODULE environment variable set (presumably from the mysite project)? If so, django thinks you're working on the old project and doesn't give you the startproject option. Try unsetting the environment variable and trying again.
0
0
0
0
2010-09-09T23:07:00.000
14
1
false
3,681,216
0
0
1
7
after installing django I tried django-admin.py startproject mysite and that worked, then I got a simple site working and I wanted to start on something real, so I tried django-admin.py startproject newsite and nothing happened. Whenever I try the command nothing happens now.. any idea what is wrong?
python django database synch
3,684,016
1
0
448
0
python,database,django,sync
Are all external connections blocked? If you can get an rsync daemon to run in the machine you can push (sync, rather) the data from other machines to master and have master process it. This will involve adding some kind of daemon process at the master. If all connections are indeed blocked you will have to resort to P...
0
0
0
0
2010-09-10T02:24:00.000
2
1.2
true
3,681,907
0
0
1
1
I use django in project. I have many cron jobs which operate with database. I want to replace cron jobs on other machine and synchronize processed data with main server. But my host provider doesnt allow external connections to db. How to organize sync. best way? I know what i can pass it via POST request with my own w...
Is there anything wrong with creating a Python Pickle powered website?
3,687,783
1
6
1,985
0
python,pickle,shelve,flask
In addition to the concurrency issues you are already aware of, you also must ensure that the file is always in a consistent state. For example, if the server crashes in the middle of writing the file, what happens then? It's a case you need to consider and implement a solution for if you go this route.
0
0
0
0
2010-09-10T02:27:00.000
3
0.066568
false
3,681,922
0
0
1
1
I have been toying with this idea for quite awhile now, but haven't seen any information on people doing it. I have a small website project where I need to load and modify 1 object. This object is pretty simple, and shouldn't be more than a few kb. Instead of running a DB for this small amount of data, why not just use...
How hard is it to learn Python/Django for a Java EE dev?
3,684,170
5
2
1,938
0
java,python,django
I'd ask your professor for some data to support "performance hog". Sounds like shallow thinking and FUD to me. Benchmarks can be found to support either position, so I don't pay much attention. The real reason to learn a language is so it can affect the way you think about programming. I think Python will be benefic...
0
0
0
1
2010-09-10T11:08:00.000
3
1.2
true
3,684,105
0
0
1
2
I was wondering is learning Python and Django a hard/time consuming process for someone who's already rather familiar with OO programming (C++/Java) and some web dev (Java EE)? I'm starting to look for a technology to implement a part of my master's thesis and since it will be a web app I'm considering Java EE (since I...
How hard is it to learn Python/Django for a Java EE dev?
3,684,145
0
2
1,938
0
java,python,django
If for your thesis and you have decided up front that you like it and want to use it, you have in my opinion the best situation conceivable. Go for it. Learn all you can. Do the best you can. This will happen again and again in your professional life, and you might as well have tried it in a situation where you have ...
0
0
0
1
2010-09-10T11:08:00.000
3
0
false
3,684,105
0
0
1
2
I was wondering is learning Python and Django a hard/time consuming process for someone who's already rather familiar with OO programming (C++/Java) and some web dev (Java EE)? I'm starting to look for a technology to implement a part of my master's thesis and since it will be a web app I'm considering Java EE (since I...
Integration of Jython and Python
3,685,411
1
2
1,449
0
java,python,user-interface,jython
Jython is already mostly Python; only code that uses some core libraries and most third-party libraries will have to be modified, with corresponding Java packages or classes used for those instead.
0
0
0
0
2010-09-10T14:21:00.000
3
0.066568
false
3,685,347
1
0
1
1
I have a Python application that is running as a console application. I did not like Python GUI libraries. That's why I want to use Java for GUI and python for application core. There are lots of details to read in the Jython documentation. I need a simple way to connect the GUI programmed in Java, and the core program...
MongoEngine vs MongoKit for Django
4,224,967
3
6
2,092
0
python,django,mongodb,mongoengine
mongoengine will be more django like in how you handle your models. That is why i choose it for my projects
0
0
0
0
2010-09-10T14:35:00.000
4
0.148885
false
3,685,466
0
0
1
2
Have you used MongoEngine or MongoKit with Django? Which one do you prefer? Background: I'm developing a new site and have experience with normal Django development but for the kind of data I'll be using the MongoDB will be better suited than a SQL database. I'm using Python 2.7 and can compile/install anything on my h...
MongoEngine vs MongoKit for Django
30,868,202
1
6
2,092
0
python,django,mongodb,mongoengine
TL;DR: MongoEngine! I've had the pleasure to work many times both with MongoKit and MongoEngine on complex projects. I'll start from the end: MongoKit project on GitHub is dead. When choosing the right tool, always remember that working with well maintained project is a huge difference. There are more features, less bu...
0
0
0
0
2010-09-10T14:35:00.000
4
0.049958
false
3,685,466
0
0
1
2
Have you used MongoEngine or MongoKit with Django? Which one do you prefer? Background: I'm developing a new site and have experience with normal Django development but for the kind of data I'll be using the MongoDB will be better suited than a SQL database. I'm using Python 2.7 and can compile/install anything on my h...
Why can't django load multiple pages simultaneously?
3,686,225
5
1
199
0
python,django,load,simultaneous
Are you using the development server? It's single-threaded by design. You'll need to run your Django app in a real web server (like Apache) to load pages simultaneously.
0
0
0
0
2010-09-10T16:00:00.000
2
1.2
true
3,686,209
0
0
1
1
I have a django aplication with an admin panel. When i add some item (it takes about 10 seconds to add it), i can't load any other page. The page is waiting for the first page to load, and then it load itself.
Will nginx+paste hold up in a production environment?
3,711,301
1
2
693
0
python,nginx,pylons,production-environment,paste
Your app will be the bottleneck in performance not Apache or Paste. Nginx is used in lots of production servers so that bit will be fine. I don't know about mod_wsgi but uWSGI is used in production environments and plays well with both nginx and Paste applications. I currently run a server using Apache + Paste using Ap...
0
0
0
1
2010-09-11T04:11:00.000
1
0.197375
false
3,689,766
0
0
1
1
I've developed a website in Pylons (Python web framework) and have it running, on my production server, under Apache + mod_wsgi. I've been hearing a lot of good things about nginx recently and wanted to give it a try. Currently, it's running as a forwarding proxy to create a front end to Paste. It seems to be running ...
Anyone knows a good hack to make django-registration use emails as usernames?
14,076,364
0
3
1,459
0
python,django,django-registration
Since Django 1.5 now it possible to have custom auth.User and make email address as username.
0
0
0
0
2010-09-11T08:04:00.000
2
0
false
3,690,269
0
0
1
1
I am planning to do email-registration-activation on my site which will be launched very soon. I have just started looking at django-registration and I am open to other email-registration-activation system available on django. My only requirement is that for my site, I don't actually use usernames. Rather, user logs i...
Counting content only in HTML page
3,690,576
0
0
82
0
python,html
You could get the source and strip the tags out, leaving only non-tag text, which works for almost all pages, except those where JavaScript-generated content is essential.
0
0
1
0
2010-09-11T10:09:00.000
3
0
false
3,690,560
0
0
1
2
Is there anyway I can parse a website by just viewing the content as displayed to the user in his browser? That is, instead of downloading "page.htm"l and starting to parse the whole page with all the HTML/javascript tags, I will be able to retrieve the version as displayed to users in their browsers. I would like to "...
Counting content only in HTML page
3,690,865
0
0
82
0
python,html
A browser also downloads the page.html and then renders it. You should work the same way. Use a html parser like lxml.html or BeautifulSoup, using those you can ask for only the text enclosed within tags (and arguments you do like, like title and alt attributes).
0
0
1
0
2010-09-11T10:09:00.000
3
1.2
true
3,690,560
0
0
1
2
Is there anyway I can parse a website by just viewing the content as displayed to the user in his browser? That is, instead of downloading "page.htm"l and starting to parse the whole page with all the HTML/javascript tags, I will be able to retrieve the version as displayed to users in their browsers. I would like to "...
Django models and multilingual websites
5,131,183
0
2
2,131
0
python,django,django-models,multilingual
I found that django transmeta, also listed by The Myyn is actually quite right for what llian is looking for. We have a very similar setup in production for some of our high traffic websites.
0
0
0
0
2010-09-11T10:58:00.000
2
0
false
3,690,715
0
0
1
1
I have a model that has multiple text properties - title, short and long description etc. I want to have multilanguage site so I need a way to easy by able to add new languages and translations for this field for every item. What is the best way to achieve this?
Security considerations - office website/portal on GAE
3,692,597
1
0
182
0
python,django,security,google-app-engine
There is always the choice between usabiity and secutity. The more security features you implent, the more difficult it gets to use it. can we host the apps on GAE (appspot.com) with https? Yes, but not on your own domain, only on appspot.com. If you are serving your app off of an own domain, you must direct all secu...
0
1
0
0
2010-09-11T20:23:00.000
1
1.2
true
3,692,526
0
0
1
1
If one needs to create an office website (that serves as a platform for clients/customers/employees) to login and access shared data, what are the security considerations. to give you some more detail, The office portal has been developed in django/python and hosted through GAE. Essentially, the end point comes with a...
Google App Engine's db.UserProperty with rpxnow
3,707,639
1
0
389
1
python,google-app-engine,rpxnow
You can only get a User object if you're using one of the built-in authentication methods. User objects provide an interface to the Users API, which is handled by the App Engine infrastructure. If you're using your own authentication library, regardless of what protocol it uses, you will have to store user information ...
0
1
0
0
2010-09-13T10:55:00.000
2
1.2
true
3,699,751
0
0
1
1
We have a Django project which runs on Google App Engine and used db.UserProperty in several models. We don't have an own User model. My boss would like to use RPXNow (Janrain) for authentication, but after I integrated it, the users.get_current_user() method returned None. It makes sense, because not Google authentica...
Is Python good enough for big applications?
3,700,424
14
24
21,901
0
python,django,web-applications
Google tend to use python for a lot, so I assume its ready for big time. We use python as glue for our products so we're happy with it.
0
0
0
0
2010-09-13T12:37:00.000
12
1
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,701,570
8
24
21,901
0
python,django,web-applications
The answer to your question really boils down to what you have in mind when you say "big application". The simple answer will be "yes". Python serves as the backbone for incredibly complex systems and it does so elegantly (just take a look at how large yet well designed Twisted & Django are). However, it's a tool like ...
0
0
0
0
2010-09-13T12:37:00.000
12
1
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,702,117
45
24
21,901
0
python,django,web-applications
Python is a pleasure to work with on big applications. Compared to other enterprise-popular languages you get: No compilation time, if you ever worked on a large C++ project you know how time consuming this can get A concise and clean syntax that makes reading code easier, also a big time saver when reading someone el...
0
0
0
0
2010-09-13T12:37:00.000
12
1.2
true
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,783,088
3
24
21,901
0
python,django,web-applications
I'm going to answer your revised question about why would anyone use a different language or technology stack. First, I love Python. Great language and definitely has its merits. However, I choose C#/.NET as my technology of choice and use Python for scripting. Yes, Python as a language is very simple/clean and ther...
0
0
0
0
2010-09-13T12:37:00.000
12
0.049958
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,783,012
3
24
21,901
0
python,django,web-applications
There two very important factors with python: 1) Easy to use 2) Easy to interface with other programming languages FACTOR 1 Because python a language that emphasizes , simplicity , readability of code both for its own syntax and libraries, that equal to writing less code. And for software that is big this is very imp...
0
0
0
0
2010-09-13T12:37:00.000
12
0.049958
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,702,186
0
24
21,901
0
python,django,web-applications
In fact, Python give you all of the best power of programming. Easy, powerful and quick! Enjoy it in big your projoect!
0
0
0
0
2010-09-13T12:37:00.000
12
0
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,700,523
0
24
21,901
0
python,django,web-applications
Performance wise - Yes, certainly for web frontends. The performance bottleneck is always the database.
0
0
0
0
2010-09-13T12:37:00.000
12
0
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
Is Python good enough for big applications?
3,700,480
4
24
21,901
0
python,django,web-applications
Python is ideal for web development. It's light, easy, and excels at gluing other bits together, and working with high level interfaces. If and when I do "web" development, I wouldn't use anything else. Update0 It's also a superior language for scripting, small cross platform applications and prototyping. It only reall...
0
0
0
0
2010-09-13T12:37:00.000
12
0.066568
false
3,700,413
0
0
1
8
From the moment I have faced Python, the only thing I can say for it is "It is awesome". I am using Django framework and I am amazed by how quick things happen and how developer friendly this language is. But from many sides I hear that Python is a scripting language, and very useful for small things, experiments etc. ...
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
15,379,528
5
435
1,708,519
0
python,windows,environment-variables,pythonpath
To augment PYTHONPATH, run regedit and navigate to KEY_LOCAL_MACHINE \SOFTWARE\Python\PythonCore and then select the folder for the python version you wish to use. Inside this is a folder labelled PythonPath, with one entry that specifies the paths where the default install stores modules. Right-click on PythonPath and...
0
1
0
0
2010-09-13T15:04:00.000
22
0.045423
false
3,701,646
0
0
1
5
I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it sti...
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
13,650,817
2
435
1,708,519
0
python,windows,environment-variables,pythonpath
This PYTHONPATH variable needs to be set for ArcPY when ArcGIS Desktop is installed. PYTHONPATH=C:\arcgis\bin (your ArcGIS home bin) For some reason it never was set when I used the installer on a Windows 7 32-bit system.
0
1
0
0
2010-09-13T15:04:00.000
22
0.01818
false
3,701,646
0
0
1
5
I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it sti...
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
38,088,508
6
435
1,708,519
0
python,windows,environment-variables,pythonpath
The python 2.X paths can be set from few of the above instructions. Python 3 by default will be installed in C:\Users\\AppData\Local\Programs\Python\Python35-32\ So this path has to be added to Path variable in windows environment.
0
1
0
0
2010-09-13T15:04:00.000
22
1
false
3,701,646
0
0
1
5
I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it sti...
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
14,753,412
61
435
1,708,519
0
python,windows,environment-variables,pythonpath
Just append your installation path (ex. C:\Python27\) to the PATH variable in System variables. Then close and open your command line and type 'python'.
0
1
0
0
2010-09-13T15:04:00.000
22
1
false
3,701,646
0
0
1
5
I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it sti...
How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
58,418,095
1
435
1,708,519
0
python,windows,environment-variables,pythonpath
While this question is about the 'real' Python, it did come up in a websearch for 'Iron Python PYTHONPATH'. For Iron Python users as confused as I was: It turns out that Iron Python looks for an environment variable called IRONPYTHONPATH. Linux/Mac/POSIX users: Don't forget that not only does Windows use \ as path sepa...
0
1
0
0
2010-09-13T15:04:00.000
22
0.009091
false
3,701,646
0
0
1
5
I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly. I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it sti...
Using sessions in Django
3,704,462
7
6
4,031
0
python,django,session,django-sessions
Is there a good rule of thumb for which one to use? No. Cached_db seems like it would always be a better choice ... That's fine. In some cases, there a many Django (and Apache) processes querying a common database. mod_wsgi allows a lot of scalability this way. The cache doesn't help much because the sessions are...
0
0
0
0
2010-09-13T21:03:00.000
1
1.2
true
3,704,404
0
0
1
1
I'm using sessions in Django to store login user information as well as some other information. I've been reading through the Django session website and still have a few questions. From the Django website: By default, Django stores sessions in your database (using the model django.contrib.sessions.models.Session)....
Django for enterprise web application
9,905,973
1
2
2,228
0
python,django
My company did just build such a system for a large scale enterprise based on Django including all mobile systems. With django the dev cost were low and runnability inside enterprise server stack was no problem. Even Django managed to let us pass the penetration and security test. with any other language we would not h...
0
0
0
0
2010-09-14T13:01:00.000
3
0.066568
false
3,709,094
0
0
1
2
I wanted to know is Django a good choice for a big web applicatin(Social Network)? More specifically, I need some suggestion on performace when number of DB transactions increases and I want to know is the embedded OR Mapping included inside Django is a good choice or should I implement them. Thanks
Django for enterprise web application
3,710,103
5
2
2,228
0
python,django
performace when number of DB transactions increases. Not a Django problem, really. You can have a lot of concurrent Django sessions via Apache and mod_wsgi. All of them will share a common database. Therefore, this is entirely a database problem. You should be able to configure enough Apache/Django sessions that you...
0
0
0
0
2010-09-14T13:01:00.000
3
1.2
true
3,709,094
0
0
1
2
I wanted to know is Django a good choice for a big web applicatin(Social Network)? More specifically, I need some suggestion on performace when number of DB transactions increases and I want to know is the embedded OR Mapping included inside Django is a good choice or should I implement them. Thanks
Django. You don't have permission to edit anything
28,936,398
-2
65
20,078
0
python,django,django-admin
I just simply Removed all currently installed versions of Django. Then freshly install the latest version of Django and it works
0
0
0
0
2010-09-15T13:31:00.000
5
-0.07983
false
3,718,077
0
0
1
3
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry) to add the class to admin console. It showed the items of that class just fine. Then I began working on another app and created everything as before. But now it says: You don't have permission to edit anything. I compared fi...
Django. You don't have permission to edit anything
16,760,228
2
65
20,078
0
python,django,django-admin
I had another case where this happened. I had an app called "transcription", with two models: Project and Recording. After getting it mostly developed I decided to rename the app "recordings". The admin app worked fine as the admin but any non-admin user got this error message. Eventually I found (in my sqlite db) the ...
0
0
0
0
2010-09-15T13:31:00.000
5
0.07983
false
3,718,077
0
0
1
3
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry) to add the class to admin console. It showed the items of that class just fine. Then I began working on another app and created everything as before. But now it says: You don't have permission to edit anything. I compared fi...
Django. You don't have permission to edit anything
3,718,260
136
65
20,078
0
python,django,django-admin
I checked files one more time and found the difference. I forgot to add admin.autodiscover() in urls.py of the project. Thanks.
0
0
0
0
2010-09-15T13:31:00.000
5
1.2
true
3,718,077
0
0
1
3
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry) to add the class to admin console. It showed the items of that class just fine. Then I began working on another app and created everything as before. But now it says: You don't have permission to edit anything. I compared fi...
What features does Django have that Pylons doesn't?
3,723,281
1
2
401
0
python,django,pylons
The ability to ask a question about it on Stackoverflow. Django has over 10,000 tagged questions, Pylon has just under 400.
0
0
0
0
2010-09-15T14:38:00.000
3
0.066568
false
3,718,695
0
0
1
2
From what I understand, Pylons is more of a 'bare bones' framework (where you can choose your ORM and template engine), and Django is a little more rich in nature. What exactly are the features/frameworky elements that Django has that Pylons doesn't? (other than its own ORM, and its auto-admin page generation)
What features does Django have that Pylons doesn't?
3,722,992
1
2
401
0
python,django,pylons
The main difference is Django's scaffolding and auto-admin interface. Both of these allow you to quickly start managing data in the website without having to create lots of views etc.
0
0
0
0
2010-09-15T14:38:00.000
3
0.066568
false
3,718,695
0
0
1
2
From what I understand, Pylons is more of a 'bare bones' framework (where you can choose your ORM and template engine), and Django is a little more rich in nature. What exactly are the features/frameworky elements that Django has that Pylons doesn't? (other than its own ORM, and its auto-admin page generation)
mySQL interface error only occuring if ran in Django
3,722,799
0
0
1,854
1
python,mysql,django,multithreading
Since it mentions the character set, my gut says you are running a different Django/Python/something from the command line than you are from the webserver. In your settings file, turn on DEBUG=True, restart the server, and then run this again. In particular, look at the list of paths shown. If they are not exactly what...
0
0
0
0
2010-09-15T21:49:00.000
2
1.2
true
3,722,120
0
0
1
1
I'm running a web crawler that gets called as a separate thread via Django. When it tries to store the scraped information I get this error: File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 147, in execute charset = db.character_set_name() InterfaceError: (0, '') If I manually run the script from the co...
CMS or Framework?
3,724,889
1
6
6,320
0
php,python,frameworks,content-management-system,web-applications
Have you read and heard about JOOMLA i think its very poweful CMS in php and has a lot of community support as well, In java LifeRay is a good option.
0
0
0
0
2010-09-16T08:19:00.000
10
0.019997
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
CMS or Framework?
5,641,607
-1
6
6,320
0
php,python,frameworks,content-management-system,web-applications
Yahoo has something like a specialized CMS for online stores, called Yahoo Stores. They make it very easy to set up an online store, and provide other logistical services. You may want to take a look at that. Of course, they take a small percentage from your sales.
0
0
0
0
2010-09-16T08:19:00.000
10
-0.019997
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
CMS or Framework?
3,725,222
1
6
6,320
0
php,python,frameworks,content-management-system,web-applications
I'd only use a framework if the requirements can not be engineered into an existing cart CMS. I'd use a CMS over a shopping cart if the commerce aspect was relatively trivial I'm surprised you're not considering an off the shelf cart. Open Cart is pretty extensible, and Trading Eye has a nice CMS component.
0
0
0
0
2010-09-16T08:19:00.000
10
0.019997
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
CMS or Framework?
3,725,165
2
6
6,320
0
php,python,frameworks,content-management-system,web-applications
If the CMS fits you perfectly now and in the future then CMS, otherwise framework. The framework will allow you total liberty for the price of time spent on development
0
0
0
0
2010-09-16T08:19:00.000
10
0.039979
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
CMS or Framework?
3,724,939
0
6
6,320
0
php,python,frameworks,content-management-system,web-applications
Choose Django if you want to learn Python/Django and use them in your future projects. Django is cool and you'll have fun learning Python. And you'll be able to make an informed decision for your next project. However, if you have a budget/timeframe or just want to make this project out of the door without needing to l...
0
0
0
0
2010-09-16T08:19:00.000
10
0
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
CMS or Framework?
3,724,927
2
6
6,320
0
php,python,frameworks,content-management-system,web-applications
CI and Django are frameworks that help you build a web application from scratch, if you are willing to do this - go ahead and try it. There should be plenty of modules available that allow you to easily extend the framework. Drupal however is a CMS, so it comes with multiple plugins already installed and is able to man...
0
0
0
0
2010-09-16T08:19:00.000
10
0.039979
false
3,724,878
0
0
1
6
I'm looking to build a online store. However, the first question, past the idea of the store, is the platform. I've previously worked with Java and PHP and am quite comfortable with PHP. So my first considerations were Drupal or maybe CodeIgniter (which I have heard lots of good things about) On discussions with frien...
Django: What is `sys.path` supposed to be?
3,726,747
0
4
3,276
0
python,django,pythonpath
As far as I know, it's just a matter of personal taste. I go with the directory which contains the project, but that's just my preference.
0
0
0
0
2010-09-16T12:38:00.000
2
0
false
3,726,705
0
0
1
1
When developing a Django application, what is sys.path supposed to contain? The directory which contains the project, or the directory of the project, or both?
Using Python in Netbeans
3,743,725
0
1
486
0
python,netbeans
You probably want to ask this question on www.serverfault.com rather than stackoverflow as it is more of a configuration issue rather than a programming issue. Include the version of Netbeans and the Java you are using - and whether you using native python and/or Jython as well. Also include at which point you see the ...
0
1
0
0
2010-09-16T15:42:00.000
1
0
false
3,728,310
1
0
1
1
I have x64 Windows XP machine. I use Netbeans to code Java. I am now trying to use it for Python, but I get this error: \NetBeans was unexpected at this time. Any idea how to fix it?
Django - alert when memcached is down
3,735,232
5
2
481
0
python,django,memcached,python-memcached
You should monitor your infrastructure. You can use a huge variety of tools for this, look on server fault for more discussions on monitoring. You should probably monitor your cache hit rate and trend it in your monitoring system; if it falls below a figure (say 90%) then you can alert that the cache has stopped workin...
0
0
0
1
2010-09-17T12:11:00.000
2
1.2
true
3,735,183
0
0
1
1
Is there some ready-made addon that alerts admins about memcached instance being inaccessible from a Django application? I don't mean here monitoring memcached daemon itself, but something that checks if my Django app benefits from caching. My basic idea is to check if cache.get that follow cache.set actually returns s...
design for continuation based python web appliction framework
3,740,407
2
0
635
0
python,architecture,frameworks,python-stackless
Before you can even begin to consider writing a continuation based framework you need a programming language that has continuations (or at least co-routines which can be used to emulate continuations). Continuation is a control structure like loops or closures or functions, not a design pattern like MVC. Unfortunately ...
0
0
0
0
2010-09-18T04:02:00.000
2
0.197375
false
3,740,330
0
0
1
2
There are many continuation based framework for java, ruby etc but none in python. Nagare framework somewhat solves the problem but it do not use standard python and uses stackless python to solve continuation problem. I was wondering, what part of standard python constraint to create such continuation web framework i...
design for continuation based python web appliction framework
3,743,417
2
0
635
0
python,architecture,frameworks,python-stackless
Right, continuation is a property of a language and CPython sadly has not continuations. The workarounds in pure Python are well known : use callbacks / deferers like Twisted and Tornado for example or use 'yield' everywhere to mimic co-routines, like Diesel. But both approaches force you to change the way you design a...
0
0
0
0
2010-09-18T04:02:00.000
2
0.197375
false
3,740,330
0
0
1
2
There are many continuation based framework for java, ruby etc but none in python. Nagare framework somewhat solves the problem but it do not use standard python and uses stackless python to solve continuation problem. I was wondering, what part of standard python constraint to create such continuation web framework i...
Total number of live sessions on GAE
3,740,943
1
0
94
0
python,google-app-engine
Considering the distributed nature of GAE, I don't think you can do this directly. You can store visits in the database (with timestamp) and query this (use a cookie to check if a user is already counted, avoid writing on each request!). Alternatively, you can use some external service that uses included javascript or...
0
1
0
0
2010-09-18T08:37:00.000
1
1.2
true
3,740,932
0
0
1
1
Is there a way to count total number of active sessions (e.g. in 10 minutes) on Google App Engine (Python)? I want to show something on frontpage like, This site currently haz 200 people online
Django restart server or httpd
3,742,868
6
7
39,920
0
python,django,django-models,django-urls,django-views
runserver.py restarts automatically every time you modify any .py file, but when you are using apache you have to restart the proccess manually.
0
0
0
0
2010-09-18T17:36:00.000
4
1.2
true
3,742,734
0
0
1
3
In django framework,When there are changes in urls.py or model.py or views.py .We would restart httpd. But as the documentation says we could restart runserver to get the latest changes. Which is the best efficient way for doing the above
Django restart server or httpd
17,571,047
4
7
39,920
0
python,django,django-models,django-urls,django-views
touch your_project_name.wsgi and save without any change. It will change data modify and django will automatically reloading code.
0
0
0
0
2010-09-18T17:36:00.000
4
0.197375
false
3,742,734
0
0
1
3
In django framework,When there are changes in urls.py or model.py or views.py .We would restart httpd. But as the documentation says we could restart runserver to get the latest changes. Which is the best efficient way for doing the above
Django restart server or httpd
3,742,781
1
7
39,920
0
python,django,django-models,django-urls,django-views
runserver refers to the development server that is distributed with Django. Restarting this one or your httpd are the same thing, in both cases you restart the webserver. If you're using apache, you are not using the development server that is startet by runserver.py.
0
0
0
0
2010-09-18T17:36:00.000
4
0.049958
false
3,742,734
0
0
1
3
In django framework,When there are changes in urls.py or model.py or views.py .We would restart httpd. But as the documentation says we could restart runserver to get the latest changes. Which is the best efficient way for doing the above
Python, how to instantiate classes from a class stored in a database?
3,743,351
5
2
262
0
python,database,django,class
Do not store code in the database!!! Imagine a class with a malicious __init__ method finding it's way in your "class repository" in the database. This means whoever has write access to those database tables has the ability to read any file from your web server and even nuke it's file system, since they have the abilit...
0
0
0
0
2010-09-18T20:13:00.000
2
1.2
true
3,743,329
0
0
1
1
I'm using Django and want to be able to store classes in a database for things like forms and models so that I can easily make them creatable through a user interface since they are just stored in the database as opposed to a regular file. I don't really know a whole lot about this and am not sure if this is a situatio...
Python / Django Web service Confusion
3,746,062
0
0
1,172
0
python,django,web-services
There are so many things like SOAPpy, XML-RPC, JSON-RPC RESTful, web service. This should give you a clue - there are different services out there that use one or more of these mechanisms. Basically all i want to know is what is the standard way of implementing web service in Python/Django and has anyone implemented...
0
0
0
0
2010-09-19T12:47:00.000
2
0
false
3,745,724
0
0
1
1
I am trying to explore more about web service in Python/Django and to be honest i am quite confused. There are so many things like SOAPpy, XML-RPC, JSON-RPC RESTful, web service. Basically all i want to know is what is the standard way of implementing web service in Python/Django and has anyone implemented in live pro...
How to work with settings in Django
3,746,881
0
1
108
0
python,django,django-models
If you are okay with changing these setting programmatically via settings.py you should do that. However, if you want to change these settings via the Admin Console, you should use models.
0
0
0
0
2010-09-19T17:50:00.000
2
0
false
3,746,790
0
0
1
1
I want to keep some global settings for my project in Django. I need to have access to these settings from the code. For example, I need to set a current theme for my site that I can set using admin console or from the code. Or I need to set a tagline that will show in the header of all pages. I suppose I should use mo...
Getting BadValueError on Google App Engine Datastore Delete
3,747,783
3
3
481
0
python,google-app-engine
Try updating your model so that the Districts field is not required (i.e., pass required=False as a keyword parameter to the Districts field). Then the validator shouldn't complain about the existing entities and you should be able to delete the entities. Alternatively, if you know the keys for the entities you want t...
0
1
0
0
2010-09-19T22:36:00.000
2
1.2
true
3,747,772
0
0
1
2
I am trying to delete records in the datastore. Unfortunately, whenever I try to delete the items, it gives me a BadValueError, saying Districts (one of the columns) is required. Because of an issue with the bulk loader, Districts is null for all of the rows...but I still need to clean out the datastore to try to fix...
Getting BadValueError on Google App Engine Datastore Delete
3,747,781
0
3
481
0
python,google-app-engine
Change your entities/models so that Districts is no longer a required property?
0
1
0
0
2010-09-19T22:36:00.000
2
0
false
3,747,772
0
0
1
2
I am trying to delete records in the datastore. Unfortunately, whenever I try to delete the items, it gives me a BadValueError, saying Districts (one of the columns) is required. Because of an issue with the bulk loader, Districts is null for all of the rows...but I still need to clean out the datastore to try to fix...
how to get the value of the 'class' attribute in a link?
3,777,996
0
0
34
0
python
should be 'className' in IE...
0
0
0
0
2010-09-20T13:58:00.000
1
1.2
true
3,752,154
1
0
1
1
I wrote the sentence as follows: allLinkValues = ie.getLinksValue('class') but the return values are all None, don't know why...
Open source Twitter clone (in Ruby/Python)
3,758,455
3
6
2,578
0
python,ruby,twitter
I know of twissandra which is an open source clone. Of course I doubt it meets your need of feature rich implementations.
0
0
0
1
2010-09-21T08:16:00.000
4
0.148885
false
3,758,440
0
0
1
1
Is there any production ready open source twitter clones written in Ruby or Python ? I am more interested in feature rich implementations, not just bare bones twitter like messages (e.g.: APIs, FBconnect, Notifications, etc) Thanks !
Customizing Django Admin Interface functionality
3,759,347
9
1
4,748
0
python,django,customization,admin
Slow down. Relax. Follow the Django philosophy. You have an "app". It presents data. Focus on presentation. You have a default, built-in admin for your "app". It updates data and it's already there. If the admin app doesn't meet your needs update Forms and update Models to get close. But don't strain yourself me...
0
0
0
0
2010-09-21T08:28:00.000
2
1.2
true
3,758,509
0
0
1
1
I am new to django and have gotten a bit stuck on trying to make the admin site work as I'd like it to. I am wondering if for making the admin functionality I want it is better to make a custom admin app with a template inheriting from admin/base_site.html, using the frontend login with a redirect when is_staff is tru...
Django Google app engine reference issues
3,808,459
0
1
249
0
python,django,google-app-engine,django-models,google-cloud-datastore
Two possible solutions: Check if the reference still exists, before you access it: if not obj.reference: # Referenced entity was deleted When you delete a model object that may be referenced, query all models that might reference it, and set their reference property to None.
0
0
0
0
2010-09-21T09:37:00.000
3
1.2
true
3,759,003
0
0
1
3
I am working on an application on Django and google application engine. In my application I have several models with several ReferenceProperty fields. The issue is that if any of the ReferenceProperty field gets deleted it produces a ReferenceProperty related errors in all the other models where it has been used. What...
Django Google app engine reference issues
3,759,035
0
1
249
0
python,django,google-app-engine,django-models,google-cloud-datastore
When I have the same problem ago, I could not find a general solution. The only way I found is to do try/except for every reference property. If you find another answer post it here.
0
0
0
0
2010-09-21T09:37:00.000
3
0
false
3,759,003
0
0
1
3
I am working on an application on Django and google application engine. In my application I have several models with several ReferenceProperty fields. The issue is that if any of the ReferenceProperty field gets deleted it produces a ReferenceProperty related errors in all the other models where it has been used. What...
Django Google app engine reference issues
3,808,505
1
1
249
0
python,django,google-app-engine,django-models,google-cloud-datastore
You could also just set a flag, say deleted, on the entity you're deleting, and then leave it in the datastore. This has the advantage of avoiding all referential integrity problems in the first place, but it comes at the cost of two main disadvantages: All your existing queries need to be changed to deal with entitie...
0
0
0
0
2010-09-21T09:37:00.000
3
0.066568
false
3,759,003
0
0
1
3
I am working on an application on Django and google application engine. In my application I have several models with several ReferenceProperty fields. The issue is that if any of the ReferenceProperty field gets deleted it produces a ReferenceProperty related errors in all the other models where it has been used. What...
is it possible to have keyname and an id for an entity in Appengine?
3,759,934
2
0
68
0
python,google-app-engine
No. An entity's Key is composed of the application ID, the Kind, the path of the parent entity (if any) and either a key name or an auto-generated ID. It's not possible to have both. The entire Key is the "primary key".
0
1
0
0
2010-09-21T09:39:00.000
1
1.2
true
3,759,021
0
0
1
1
I'm building a facebook app, and my users table's keyName is set to the Uid of the facebook user. I found this to be efficient because I can use db.Key.from_path() to efficiently query the datastore for a particular user instead of doing a query (where uid = x, limit = 1). This is actually my first time using key names...
Designing my domain model around one 3rd-party library
3,764,942
1
1
191
0
python,oop
I would not couple my project tightly to the library, but instead try to abstract functionality and couple both using one or more objects in between. The mediator and/or facade pattern come to my mind here.
0
0
0
0
2010-09-21T22:02:00.000
2
0.099668
false
3,764,851
0
0
1
1
I'm working on a poker analysis tool with the following use case: User create Strategy class with one method: input GameState, output PokerAction User runs Analysis script, which launches a PokerGame between various Strategy subclasses (i.e. various strategies) PokerGame generates random deck PokerGame sends GameState...
How to reload modules in django shell?
26,771,173
48
108
52,169
0
python,django,ipython
My solution to it is I write the code and save to a file and then use: python manage.py shell < test.py So I can make the change, save and run that command again till I fix whatever I'm trying to fix.
0
0
0
0
2010-09-22T18:02:00.000
12
1
false
3,772,260
0
0
1
2
I am working with Django and use Django shell all the time. The annoying part is that while the Django server reloads on code changes, the shell does not, so every time I make a change to a method I am testing, I need to quit the shell and restart it, re-import all the modules I need, reinitialize all the variables I n...
How to reload modules in django shell?
3,816,813
25
108
52,169
0
python,django,ipython
It seems that the general consensus on this topic, is that python reload() sucks and there is no good way to do this.
0
0
0
0
2010-09-22T18:02:00.000
12
1
false
3,772,260
0
0
1
2
I am working with Django and use Django shell all the time. The annoying part is that while the Django server reloads on code changes, the shell does not, so every time I make a change to a method I am testing, I need to quit the shell and restart it, re-import all the modules I need, reinitialize all the variables I n...
Django, where to import your modules
3,773,276
3
0
81
0
python,django
There is no requirement in Django that you import modules at function scope. You can, but that is true of python generally. I'd like to see your code and error message. I don't think that your problem is due to the cause you attribute it to.
0
0
0
0
2010-09-22T20:10:00.000
1
0.53705
false
3,773,208
0
0
1
1
I always thought it was OK to just import all of your modules at the top of a view file. Then if you ever change a model name you can just edit the import at the top and not go digging through every view function that you need it imported in. Well, I just ran into an instance where I had imported a model at the top ...
How do I generate a connection reset programatically?
3,773,702
1
8
3,959
0
php,python,sockets,web-applications,tcp
I believe you need to close the low-level socket fairly abruptly. You won't be able to do it from Javascript. For the other languages you'll generally need to get a handle on the underlying socket object and close() it manually. I also doubt you can do this through Apache since it is Apache and not your application hol...
0
0
0
1
2010-09-22T20:56:00.000
3
0.066568
false
3,773,566
0
0
1
1
I'm sure you've seen the "the connection was reset" message displayed when trying to browse web pages. (The text is from Firefox, other browsers differ.) I need to generate that message/error/condition on demand, to test workarounds. So, how do I generate that condition programmatically? (How to generate a TCP RST fr...