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
How can I find the full path to a font from its display name on a Mac?
518
6
47
4,225
0
python,macos,fonts,photoshop
I haven't been able to find anything that does this directly. I think you'll have to iterate through the various font folders on the system: /System/Library/Fonts, /Library/Fonts, and there can probably be a user-level directory as well ~/Library/Fonts.
0
0
0
1
2008-08-02T15:11:00.000
4
1
false
469
0
0
1
2
I am using the Photoshop's javascript API to find the fonts in a given PSD. Given a font name returned by the API, I want to find the actual physical font file that font name corresponds to on the disc. This is all happening in a python program running on OSX so I guess I'm looking for one of: Some Photoshop javascrip...
How can I find the full path to a font from its display name on a Mac?
3,040
21
47
4,225
0
python,macos,fonts,photoshop
Unfortunately the only API that isn't deprecated is located in the ApplicationServices framework, which doesn't have a bridge support file, and thus isn't available in the bridge. If you're wanting to use ctypes, you can use ATSFontGetFileReference after looking up the ATSFontRef. Cocoa doesn't have any native support,...
0
0
0
1
2008-08-02T15:11:00.000
4
1.2
true
469
0
0
1
2
I am using the Photoshop's javascript API to find the fonts in a given PSD. Given a font name returned by the API, I want to find the actual physical font file that font name corresponds to on the disc. This is all happening in a python program running on OSX so I guess I'm looking for one of: Some Photoshop javascrip...
IronPython and ASP.NET
21,149
0
7
634
0
asp.net,ironpython
Keep a look out for ASP.NET MVC The IronRuby guys have got some internal builds of MVC to work with IronRuby, and IronPython 2 and IronRuby have a lot of code in common with the DLR. I'm not sure if they'll support IronPython/IronRuby when MVC is released, but it's definitely worth keeping your eye on anyway - The old ...
0
0
0
0
2008-08-15T20:17:00.000
3
0
false
12,692
0
0
1
1
Has anyone built a website with IronPython and ASP.NET. What were your experiences and is the combination ready for prime-time?
Introducing Python
19,700
1
6
651
0
php,python
I think the language itself is not an issue here, as python is really nice high level language with good and easy to find, thorough documentation. From what I've seen, the Django framework is also a great tooklit for web development, giving much the same developer performance boost Rails is touted to give. The real iss...
0
0
0
0
2008-08-21T11:48:00.000
8
0.024995
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,715
14
6
651
0
php,python
I recently introduced Python to my company, which does consulting work for the Post Office. I did this by waiting until there was a project for which I would be the only programmer, then getting permission to do this new project in Python. I then did another small project in Python with similarly impressive results. ...
0
0
0
0
2008-08-21T11:48:00.000
8
1.2
true
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,943
0
6
651
0
php,python
I love Python and Django, and use both to develop the our core webapps. That said, it's hard to make a business case for switching at this point. Specifically: Any new platform is risky compared to staying with the tried and true You'll have the developer fragmentation you mentioned It's far easier to find PHP program...
0
0
0
0
2008-08-21T11:48:00.000
8
0
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,968
1
6
651
0
php,python
It's really all about schedules. To me the break should be with a specific project. If you decide your direction is Django then start new projects with that. Before you start a new project with a new language/framework, either make sure that you have scheduled time to get up to speed in this new direction, or get up...
0
0
0
0
2008-08-21T11:48:00.000
8
0.024995
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,685
0
6
651
0
php,python
I don't think it's a matter of a programming language as such. What is the proficiency level of PHP in the team you're talking about? Are they doing spaghetti code or using some structured framework like Zend? If this is the first case then I absolutely understand the guy's interest in Python and Django. It this is th...
0
0
0
0
2008-08-21T11:48:00.000
8
0
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,692
2
6
651
0
php,python
@darkdog: Using a new language in production code is about more than easy syntax and high-level capability. You want to be familiar with core APIs and feel like you can fix something through logic instead of having to comb through the documentation. I'm not saying transitioning to Python would be a bad idea for this co...
0
0
0
0
2008-08-21T11:48:00.000
8
0.049958
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,668
4
6
651
0
php,python
If the mandate of the new lead is to put the house in order, the current situation should likely be simplified as much as possible prior. If I had to bring things to order, I wouldn't want to have to manage an ongoing language conversion project on top of everything else, or at least I'd like some choice when initiati...
0
0
0
0
2008-08-21T11:48:00.000
8
0.099668
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Introducing Python
19,665
0
6
651
0
php,python
Well, python is a high level language.. its not hard to learn and if the guys already have programming knowledge it should be much easier to learn.. i like django.. i think it should be a nice try to use django ..
0
0
0
0
2008-08-21T11:48:00.000
8
0
false
19,654
1
0
1
8
The company I used to work with has two developers working fulltime, and a handful of freelancers. They're in the process of hiring a new lead developer to try to bring order and management to the development. But, currently, one of the developers has seen the light of Django (the company has only developed in PHP to d...
Why Java and Python garbage collection methods are different?
7,826,363
7
65
20,044
0
java,python,garbage-collection
One big disadvantage of Java's tracing GC is that from time to time it will "stop the world" and freeze the application for a relatively long time to do a full GC. If the heap is big and the the object tree complex, it will freeze for a few seconds. Also each full GC visits the whole object tree over and over again, s...
0
0
0
0
2008-08-22T07:35:00.000
9
1
false
21,934
1
0
1
4
Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are no longer used at a specific time. Why does Java choose this strategy and what is the benefit from this? Is this better t...
Why Java and Python garbage collection methods are different?
74,327
6
65
20,044
0
java,python,garbage-collection
Garbage collection is faster (more time efficient) than reference counting, if you have enough memory. For example, a copying gc traverses the "live" objects and copies them to a new space, and can reclaim all the "dead" objects in one step by marking a whole memory region. This is very efficient, if you have enough me...
0
0
0
0
2008-08-22T07:35:00.000
9
1
false
21,934
1
0
1
4
Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are no longer used at a specific time. Why does Java choose this strategy and what is the benefit from this? Is this better t...
Why Java and Python garbage collection methods are different?
21,964
54
65
20,044
0
java,python,garbage-collection
There are drawbacks of using reference counting. One of the most mentioned is circular references: Suppose A references B, B references C and C references B. If A were to drop its reference to B, both B and C will still have a reference count of 1 and won't be deleted with traditional reference counting. CPython (refer...
0
0
0
0
2008-08-22T07:35:00.000
9
1.2
true
21,934
1
0
1
4
Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are no longer used at a specific time. Why does Java choose this strategy and what is the benefit from this? Is this better t...
Why Java and Python garbage collection methods are different?
46,780
4
65
20,044
0
java,python,garbage-collection
Reference counting is particularly difficult to do efficiently in a multi-threaded environment. I don't know how you'd even start to do it without getting into hardware assisted transactions or similar (currently) unusual atomic instructions. Reference counting is easy to implement. JVMs have had a lot of money sunk in...
0
0
0
0
2008-08-22T07:35:00.000
9
0.088656
false
21,934
1
0
1
4
Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are no longer used at a specific time. Why does Java choose this strategy and what is the benefit from this? Is this better t...
How do content discovery engines, like Zemanta and Open Calais work?
23,041
0
5
2,346
0
python,ruby,semantics,zemanta
Open Calais probably use language parsing technology and language statics to guess which words or phrases are Names, Places, Companies, etc. Then, it is just another step to do some kind of search for those entities and return meta data. Zementa probably does something similar, but matches the phrases against meta-data...
0
0
0
0
2008-08-22T10:51:00.000
3
0
false
22,059
0
0
1
1
I was wondering how as semantic service like Open Calais figures out the names of companies, or people, tech concepts, keywords, etc. from a piece of text. Is it because they have a large database that they match the text against? How would a service like Zemanta know what images to suggest to a piece of text for inst...
Cleanest & Fastest server setup for Django
5,942,466
2
47
24,076
0
python,django,apache,hosting
In my opinion best/fastest stack is varnish-nginx-uwsgi-django. And I'm successfully using it.
0
0
0
0
2008-08-25T13:28:00.000
13
0.03076
false
26,025
0
0
1
3
I'm about to deploy a mediumsized site powered by Django. I have a dedicated Ubuntu Server. I'm really confused over which serversoftware to use. So i thought to myself: why not ask stackoverflow. What i'm looking for is: Easy to set up Fast and easy on resources Can serve mediafiles Able to serve multiple djangosite...
Cleanest & Fastest server setup for Django
26,185
1
47
24,076
0
python,django,apache,hosting
If you're using lighthttpd, you can also use FastCGI for serving Django. I'm not sure how the speed compares to mod_wsgi, but if memory serves correctly, you get a couple of the benefits that you would get with mod_wsgi that you wouldn't get with mod_python. The main one being that you can give each application its o...
0
0
0
0
2008-08-25T13:28:00.000
13
0.015383
false
26,025
0
0
1
3
I'm about to deploy a mediumsized site powered by Django. I have a dedicated Ubuntu Server. I'm really confused over which serversoftware to use. So i thought to myself: why not ask stackoverflow. What i'm looking for is: Easy to set up Fast and easy on resources Can serve mediafiles Able to serve multiple djangosite...
Cleanest & Fastest server setup for Django
29,748
27
47
24,076
0
python,django,apache,hosting
Since I was looking for some more in-depth answers, I decided to research the issue myself in depth. Please let me know if I've misunderstood anything. Some general recommendation are to use a separate webserver for handling media. By separate, I mean a webserver which is not running Django. This server can be for inst...
0
0
0
0
2008-08-25T13:28:00.000
13
1.2
true
26,025
0
0
1
3
I'm about to deploy a mediumsized site powered by Django. I have a dedicated Ubuntu Server. I'm really confused over which serversoftware to use. So i thought to myself: why not ask stackoverflow. What i'm looking for is: Easy to set up Fast and easy on resources Can serve mediafiles Able to serve multiple djangosite...
Install Python to match directory layout in OS X 10.5
31,384
1
4
653
0
python,macos,64-bit
Personally, I wouldn't worry about it until you see a problem. Messing with the default python install on a *Nix system can cause more trouble than it's worth. I can say from personal experience that you never truly understand what python has done for the nix world until you have a problem with it. You can also add a...
0
1
0
0
2008-08-27T10:22:00.000
5
1.2
true
29,856
0
0
1
4
The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work). I want to upgrade Python to 64 bit. ...
Install Python to match directory layout in OS X 10.5
31,331
0
4
653
0
python,macos,64-bit
Essentially, yes. I was not sure you could do it like that (current version does not do it like that). When using the python install script, however, there is no option (that I can find) to specify where to put directories and files (eg --prefix). I was hoping to match the current layout of python related files so as t...
0
1
0
0
2008-08-27T10:22:00.000
5
0
false
29,856
0
0
1
4
The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work). I want to upgrade Python to 64 bit. ...
Install Python to match directory layout in OS X 10.5
30,591
1
4
653
0
python,macos,64-bit
Not sure I entirely understand your question, but can't you simply build and install a 64 bit version and then create symbolic links so that /Library/Python/2.5 and below point to your freshly built version of python?
0
1
0
0
2008-08-27T10:22:00.000
5
0.039979
false
29,856
0
0
1
4
The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work). I want to upgrade Python to 64 bit. ...
Install Python to match directory layout in OS X 10.5
31,425
0
4
653
0
python,macos,64-bit
The short answer is because I can. The long answer, expanding on what the OP said, is to be more compatible with apache and mysql/postgresql. They are all 64bit (apache is a fat binary with ppc, ppc64 x86 and x86 and x86_64, the others just straight 64bit). Mysqldb and mod_python wont compile unless they are all runnin...
0
1
0
0
2008-08-27T10:22:00.000
5
0
false
29,856
0
0
1
4
The default Python install on OS X 10.5 is 2.5.1 with a FAT 32 bit (Intel and PPC) client. I want to setup apache and mysql to run django. In the past, I have run Apache and MySQL to match this install in 32 bit mode (even stripping out the 64 bit stuff from Apache to make it work). I want to upgrade Python to 64 bit. ...
Filter out HTML tags and resolve entities in python
38,646
0
18
25,958
0
python,html
Looking at the amount of sense people are demonstrating in other answers here, I'd say that using a regex probably isn't the best idea for your situation. Go for something tried and tested, and treat my previous answer as a demonstration that regexes need not be that scary.
0
0
0
0
2008-09-01T05:25:00.000
8
0
false
37,486
1
0
1
2
Because regular expressions scare me, I'm trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python.
Filter out HTML tags and resolve entities in python
37,604
0
18
25,958
0
python,html
Regular expressions are not scary, but writing your own regexes to strip HTML is a sure path to madness (and it won't work, either). Follow the path of wisdom, and use one of the many good HTML-parsing libraries. Lucas' example is also broken because "sub" is not a method of a Python string. You'd have to "import re"...
0
0
0
0
2008-09-01T05:25:00.000
8
0
false
37,486
1
0
1
2
Because regular expressions scare me, I'm trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python.
How to generate urls in django
72,249
4
35
37,259
0
python,django,url,django-urls
Be aware that using reverse() requires that your urlconf module is 100% error free and can be processed - iow no ViewDoesNotExist errors or so, or you get the dreaded NoReverseMatch exception (errors in templates usually fail silently resulting in None).
0
0
0
0
2008-09-04T07:36:00.000
4
0.197375
false
43,290
0
0
1
1
In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code? What I need is to create a list of menu items where each item has name, URL, and an active flag (whether it's the current page or not). Th...
A python web application framework for tight DB/GUI coupling?
48,479
1
11
2,785
0
python,sql,metadata,coupling,data-driven
I know that you specificity ask for a framework but I thought I would let you know about what I get up to here. I have just undergone converting my company's web application from a custom in-house ORM layer into sqlAlchemy so I am far from an expert but something that occurred to me was that sqlAlchemy has types for al...
0
0
0
0
2008-09-04T08:53:00.000
5
0.039979
false
43,368
0
0
1
1
I'm a firm believer of the heretic thought of tight coupling between the backend and frontend: I want existing, implied knowledge about a backend to be automatically made use of when generating user interfaces. E.g., if a VARCHAR column has a maximum with of 20 characters, there GUIs should automatically constrain the ...
Project design / FS layout for large django projects
427,643
1
44
7,973
0
python,django
My current layout stems from me wanting to have a test-version of my sites. This means having two projects for every site, since they need different configurations, and forces me to move all the applications out of the projects. I've created two folders: $APP_ROOT/devel and $APP_ROOT/prod. These contain all the apps....
0
0
0
0
2008-09-04T16:36:00.000
6
0.033321
false
44,135
0
0
1
1
What is the best way to layout a large django project? The tutorials provide simple instructions for setting up apps, models, and views, but there is less information about how apps and projects should be broken down, how much sharing is allowable/necessary between apps in a typical project (obviously that is largely ...
Django Sessions
100,464
3
38
12,358
0
python,django,session,caching,mongodb
One thing that has to be considered when choosing session backend is "how often session data is modified"? Even sites with moderate traffic will suffer if session data is modified on each request, making many database trips to store and retrieve data. In my previous work we used memcache as session backend exclusively ...
0
0
0
0
2008-09-08T20:16:00.000
5
0.119427
false
50,568
0
0
1
3
I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them?
Django Sessions
326,046
1
38
12,358
0
python,django,session,caching,mongodb
If the database have a DBA that isn't you, you may not be allowed to use a database-backed session (it being a front-end matter only). Until django supports easily merging data from several databases, so that you can have frontend-specific stuff like sessions and user-messages (the messages in django.contrib.auth are a...
0
0
0
0
2008-09-08T20:16:00.000
5
0.039979
false
50,568
0
0
1
3
I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them?
Django Sessions
50,668
25
38
12,358
0
python,django,session,caching,mongodb
The filesystem backend is only worth looking at if you're not going to use a database for any other part of your system. If you are using a database then the filesystem backend has nothing to recommend it. The memcache backend is much quicker than the database backend, but you run the risk of a session being purged and...
0
0
0
0
2008-09-08T20:16:00.000
5
1
false
50,568
0
0
1
3
I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them?
How can I retrieve the page title of a webpage using Python?
17,123,979
2
86
103,114
0
python,html
soup.title.string actually returns a unicode string. To convert that into normal string, you need to do string=string.encode('ascii','ignore')
0
0
1
0
2008-09-09T04:38:00.000
12
0.033321
false
51,233
0
0
1
1
How can I retrieve the page title of a webpage (title html tag) using Python?
What are some good Python ORM solutions?
4,908,742
0
236
178,152
0
python,orm
I used Storm + SQLite for a small project, and was pretty happy with it until I added multiprocessing. Trying to use the database from multiple processes resulted in a "Database is locked" exception. I switched to SQLAlchemy, and the same code worked with no problems.
0
0
0
0
2008-09-10T04:49:00.000
12
0
false
53,428
0
0
1
3
I'm evaluating and looking at using CherryPy for a project that's basically a JavaScript front-end from the client-side (browser) that talks to a Python web service on the back-end. So, I really need something fast and lightweight on the back-end that I can implement using Python that then speaks to the PostgreSQL DB v...
What are some good Python ORM solutions?
2,510,845
-2
236
178,152
0
python,orm
SQLAlchemy is very, very powerful. However it is not thread safe make sure you keep that in mind when working with cherrypy in thread-pool mode.
0
0
0
0
2008-09-10T04:49:00.000
12
-0.033321
false
53,428
0
0
1
3
I'm evaluating and looking at using CherryPy for a project that's basically a JavaScript front-end from the client-side (browser) that talks to a Python web service on the back-end. So, I really need something fast and lightweight on the back-end that I can implement using Python that then speaks to the PostgreSQL DB v...
What are some good Python ORM solutions?
186,179
1
236
178,152
0
python,orm
There is no conceivable way that the unused features in Django will give a performance penalty. Might just come in handy if you ever decide to upscale the project.
0
0
0
0
2008-09-10T04:49:00.000
12
0.016665
false
53,428
0
0
1
3
I'm evaluating and looking at using CherryPy for a project that's basically a JavaScript front-end from the client-side (browser) that talks to a Python web service on the back-end. So, I really need something fast and lightweight on the back-end that I can implement using Python that then speaks to the PostgreSQL DB v...
Any good AJAX framework for Google App Engine apps?
230,476
0
14
11,904
0
python,ajax,google-app-engine
I'm currently using JQuery for my GAE app and it works beautifully for me. I have a chart (google charts) that is dynamic and uses an Ajax call to grab a JSON string. It really seems to work fine for me.
0
1
0
0
2008-09-10T13:12:00.000
11
0
false
53,997
0
0
1
2
I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Engine?
Any good AJAX framework for Google App Engine apps?
54,015
3
14
11,904
0
python,ajax,google-app-engine
I'd recommend looking into a pure javascript framework (probably Jquery) for your client-side code, and write JSON services in python- that seems to be the easiest / bestest way to go. Google Web Toolkit lets you write the UI in Java and compile it to javascript. As Dave says, it may be a better choice where the backen...
0
1
0
0
2008-09-10T13:12:00.000
11
0.054491
false
53,997
0
0
1
2
I am trying to implement AJAX in my Google App Engine application, and so I am looking for a good AJAX framework that will help me. Anyone has any idea? I am thinking about Google Web Toolkit, how good it is in terms of creating AJAX for Google App Engine?
Anyone used Dabo for a medium-big project?
103,212
2
21
4,033
0
python,erp,dabo
I have no Dabo experience at all but this question is on the top of the list fo such a long time that I decided to give it a shot: Framework selection Assumptions: medium-to-big project: we're talking about a team of more than 20 people working on something for about a year for the first phase. This is usually an expe...
0
1
0
0
2008-09-11T12:29:00.000
2
0.197375
false
56,417
0
0
1
1
We're at the beginning of a new ERP-ish client-server application, developed as a Python rich client. We're currently evaluating Dabo as our main framework and it looks quite nice and easy to use, but I was wondering, has anyone used it for medium-to-big sized projects? Thanks for your time!
When to create a new app (with startapp) in Django?
68,086
6
130
35,690
0
python,django
The rule I follow is it should be a new app if I want to reuse the functionality in a different project. If it needs deep understanding of the models in your project, it's probably more cohesive to stick it with the models.
0
0
0
0
2008-09-15T16:03:00.000
8
1
false
64,237
0
0
1
5
I've googled around for this, but I still have trouble relating to what Django defines as "apps". Should I create a new app for each piece of functionality in a site, even though it uses models from the main project? Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality to...
When to create a new app (with startapp) in Django?
64,308
14
130
35,690
0
python,django
I tend to create new applications for each logically separate set of models. e.g.: User Profiles Forum Posts Blog posts
0
0
0
0
2008-09-15T16:03:00.000
8
1
false
64,237
0
0
1
5
I've googled around for this, but I still have trouble relating to what Django defines as "apps". Should I create a new app for each piece of functionality in a site, even though it uses models from the main project? Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality to...
When to create a new app (with startapp) in Django?
67,769
1
130
35,690
0
python,django
An 'app' could be many different things, it all really comes down to taste. For example, let's say you are building a blog. Your app could be the entire blog, or you could have an 'admin' app, a 'site' app for all of the public views, an 'rss' app, a 'services' app so developers can interface with the blog in their own...
0
0
0
0
2008-09-15T16:03:00.000
8
0.024995
false
64,237
0
0
1
5
I've googled around for this, but I still have trouble relating to what Django defines as "apps". Should I create a new app for each piece of functionality in a site, even though it uses models from the main project? Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality to...
When to create a new app (with startapp) in Django?
64,463,620
2
130
35,690
0
python,django
The best answer to this question is given by Andrew Godwin (Django core developer): The main purpose of apps is, in my eyes, to provide logical separation of reusable components - specifically, a first-class namespace for models/admin/etc. - and to provide an easy way to turn things “on” or “off”. In some ways, it’s a ...
0
0
0
0
2008-09-15T16:03:00.000
8
0.049958
false
64,237
0
0
1
5
I've googled around for this, but I still have trouble relating to what Django defines as "apps". Should I create a new app for each piece of functionality in a site, even though it uses models from the main project? Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality to...
When to create a new app (with startapp) in Django?
64,464
24
130
35,690
0
python,django
I prefer to think of Django applications as reusable modules or components than as "applications". This helps me encapsulate and decouple certain features from one another, improving re-usability should I decide to share a particular "app" with the community at large, and maintainability. My general approach is to buc...
0
0
0
0
2008-09-15T16:03:00.000
8
1
false
64,237
0
0
1
5
I've googled around for this, but I still have trouble relating to what Django defines as "apps". Should I create a new app for each piece of functionality in a site, even though it uses models from the main project? Do you guys have good rule of thumb of when to split off a new app, and when to keep functionality to...
Serving dynamically generated ZIP archives in Django
67,477
-1
68
32,479
0
python,django
Can't you just write a link to a "zip server" or whatnot? Why does the zip archive itself need to be served from Django? A 90's era CGI script to generate a zip and spit it to stdout is really all that's required here, at least as far as I can see.
0
0
0
0
2008-09-15T22:00:00.000
10
-0.019997
false
67,454
0
0
1
2
How to serve users a dynamically generated ZIP archive in Django? I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server down to a crawl. I have also heard that Django doesn't currentl...
Serving dynamically generated ZIP archives in Django
73,617
1
68
32,479
0
python,django
I suggest to use separate model for storing those temp zip files. You can create zip on-fly, save to model with filefield and finally send url to user. Advantages: Serving static zip files with django media mechanism (like usual uploads). Ability to cleanup stale zip files by regular cron script execution (which can u...
0
0
0
0
2008-09-15T22:00:00.000
10
0.019997
false
67,454
0
0
1
2
How to serve users a dynamically generated ZIP archive in Django? I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server down to a crawl. I have also heard that Django doesn't currentl...
Using the docstring from one method to automatically overwrite that of another method
73,473
1
4
2,897
0
python,metaclass
Look at the functools.wraps() decorator; it does all of this, but I don't know offhand if you can get it to run in the right context
0
0
0
0
2008-09-16T12:46:00.000
5
0.039979
false
71,817
0
0
1
2
The problem: I have a class which contains a template method execute which calls another method _execute. Subclasses are supposed to overwrite _execute to implement some specific functionality. This functionality should be documented in the docstring of _execute. Advanced users can create their own subclasses to exten...
Using the docstring from one method to automatically overwrite that of another method
72,126
0
4
2,897
0
python,metaclass
Well the doc-string is stored in __doc__ so it wouldn't be too hard to re-assign it based on the doc-string of _execute after the fact. Basically: class MyClass(object): def execute(self): '''original doc-string''' self._execute() class SubClass(MyClass): def _execute(self): '''sub-cl...
0
0
0
0
2008-09-16T12:46:00.000
5
0
false
71,817
0
0
1
2
The problem: I have a class which contains a template method execute which calls another method _execute. Subclasses are supposed to overwrite _execute to implement some specific functionality. This functionality should be documented in the docstring of _execute. Advanced users can create their own subclasses to exten...
Django -vs- Grails -vs-?
1,997,668
10
23
19,797
0
python,django,frameworks
The statement that grails deletes the database on start-up is completely wrong. It's behavior on start-up is completely configurable and easy to configure. I generally use create-drop when running an app in dev mode. I use update when I run in test and production. I also love the bootstrap processing that lets me pr...
0
0
0
0
2008-09-16T19:05:00.000
9
1
false
75,798
0
0
1
5
I'm wondering if there's such a thing as Django-like ease of web app development combined with good deployment, debugging and other tools? Django is a very productive framework for building content-heavy sites; the best I've tried and a breath of fresh air compared to some of the Java monstrosities out there. However ...
Django -vs- Grails -vs-?
460,360
10
23
19,797
0
python,django,frameworks
Grails. Grails just looks like Rails (Ruby),but it uses groovy which is simpler than java. It uses java technology and you can use any java lib without any trouble. I also choose Grails over simplicity and there are lots of java lib (such as jasper report, jawr etc) and I am glad that now they join with SpringSource w...
0
0
0
0
2008-09-16T19:05:00.000
9
1
false
75,798
0
0
1
5
I'm wondering if there's such a thing as Django-like ease of web app development combined with good deployment, debugging and other tools? Django is a very productive framework for building content-heavy sites; the best I've tried and a breath of fresh air compared to some of the Java monstrosities out there. However ...
Django -vs- Grails -vs-?
81,699
1
23
19,797
0
python,django,frameworks
Personally I made some rather big projects with Django, but I can compare only with said "montrosities" (Spring, EJB) and really low-level stuff like Twisted. Web frameworks using interpreted languages are mostly in its infancy and all of them (actively maintained, that is) are getting better with every day.
0
0
0
0
2008-09-16T19:05:00.000
9
0.022219
false
75,798
0
0
1
5
I'm wondering if there's such a thing as Django-like ease of web app development combined with good deployment, debugging and other tools? Django is a very productive framework for building content-heavy sites; the best I've tried and a breath of fresh air compared to some of the Java monstrosities out there. However ...
Django -vs- Grails -vs-?
76,198
1
23
19,797
0
python,django,frameworks
cakephp.org Cakephp is really good, really close to ruby on rails (1.2). It is in php, works very well on shared hosts and is easy to implement. The only downside is that the documentation is somewhat lacking, but you quickly get it and quickly start doing cool stuff. I totally recommend cakephp.
0
0
0
0
2008-09-16T19:05:00.000
9
0.022219
false
75,798
0
0
1
5
I'm wondering if there's such a thing as Django-like ease of web app development combined with good deployment, debugging and other tools? Django is a very productive framework for building content-heavy sites; the best I've tried and a breath of fresh air compared to some of the Java monstrosities out there. However ...
Django -vs- Grails -vs-?
1,955,727
32
23
19,797
0
python,django,frameworks
You asked for someone who used both Grails and Django. I've done work on both for big projects. Here's my Thoughts: IDE's: Django works really well in Eclipse, Grails works really well in IntelliJ Idea. Debugging: Practically the same (assuming you use IntelliJ for Grails, and Eclipse for Python). Step debugging, inspe...
0
0
0
0
2008-09-16T19:05:00.000
9
1.2
true
75,798
0
0
1
5
I'm wondering if there's such a thing as Django-like ease of web app development combined with good deployment, debugging and other tools? Django is a very productive framework for building content-heavy sites; the best I've tried and a breath of fresh air compared to some of the Java monstrosities out there. However ...
What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?
99,603
3
4
2,417
0
python,ruby-on-rails,ruby,apache-flex,blazeds
The data management features for LCDS described here are certainly valid, however I believe they do not let you actually develop a solution faster. A developer still has to write ALL the data access code, query execution, extracting data from datareaders into value objects. ALL of this has been solved a dozen of times ...
0
0
0
0
2008-09-16T21:15:00.000
4
0.148885
false
77,198
0
0
1
3
I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc). Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't?
What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?
77,458
1
4
2,417
0
python,ruby-on-rails,ruby,apache-flex,blazeds
Good question. I'm not a ruby guy (i use java with flex), but what I believe differentiates blazeds vs commercial livecycle ds is Streaming protocol support (rtmp) - competition for comet and such, delivering video Some advanced stuff for hibernate detached objects and large resultset caching that I don't fully unders...
0
0
0
0
2008-09-16T21:15:00.000
4
0.049958
false
77,198
0
0
1
3
I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc). Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't?
What does BlazeDS Livecycle Data Services do, that something like PyAMF or RubyAMF not do?
98,180
3
4
2,417
0
python,ruby-on-rails,ruby,apache-flex,blazeds
Other than NIO (RTMP) channels, LCDS include also the "data management" features. Using this feature, you basically implement, in an ActionScript class, a CRUD-like interface defined by LCDS, and you get: automatic progressive list loading (large lists/datagrids loads while scrolling) automatic crud management (you g...
0
0
0
0
2008-09-16T21:15:00.000
4
1.2
true
77,198
0
0
1
3
I'm doing a tech review and looking at AMF integration with various backends (Rails, Python, Grails etc). Lots of options are out there, question is, what do the Adobe products do (BlazeDS etc) that something like RubyAMF / pyAMF don't?
Is there any list of blog engines, written in Django?
82,690
3
18
4,075
0
python,django
Byteflow is a blog engine, written on Python, using Django
0
0
0
0
2008-09-17T12:37:00.000
7
0.085505
false
82,653
0
0
1
2
Is there any list of blog engines, written in Django?
Is there any list of blog engines, written in Django?
82,753
3
18
4,075
0
python,django
Django's powerful admin interface and easy ORM makes it a 30 minute job to build a blog that propably fits your needs; Why look for a 3rd party product when you can make it yourself very quickly?
0
0
0
0
2008-09-17T12:37:00.000
7
0.085505
false
82,653
0
0
1
2
Is there any list of blog engines, written in Django?
If it is decided that our system needs an overhaul, what is the best way to go about it?
101,074
1
3
406
0
python,asp-classic,vbscript
Half a year ago I took over a large web application (fortunately already in Python) which had some major architectural deficiencies (templates and code mixed, code duplication, you name it...). My plan is to eventually have the system respond to WSGI, but I am not there yet. I found the best way to do it, is in small s...
0
0
0
0
2008-09-17T20:48:00.000
9
0.022219
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
89,452
0
3
406
0
python,asp-classic,vbscript
Don't try and go 2.0 ( more features then currently exists or scheduled) instead build your new platform with the intent of resolving the current issues with the code base (maintainability/speed/wtf) and go from there.
0
0
0
0
2008-09-17T20:48:00.000
9
0
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
87,684
2
3
406
0
python,asp-classic,vbscript
Whatever you do, see if you can manage to follow a plan where you do not have to port the application all in one big bang. It is tempting to throw it all away and start from scratch, but if you can manage to do it gradually the mistakes you do will not cost so much and cause so much panic.
0
0
0
0
2008-09-17T20:48:00.000
9
0.044415
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
994,326
0
3
406
0
python,asp-classic,vbscript
I agree with Michael Pryor and Joel that it's almost always a better idea to continue evolving your existing code base rather than re-writing from scratch. There are typically opportunities to just re-write or re-factor certain components for performance or flexibility.
0
0
0
0
2008-09-17T20:48:00.000
9
0
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
87,562
3
3
406
0
python,asp-classic,vbscript
Use this as an opportunity to remove unused features! Definitely go with the new language. Call it 2.0. It will be a lot less work to rebuild the 80% of it that you really need. Start by wiping your brain clean of the whole application. Sit down with a list of its overall goals, then decide which features are neede...
0
0
0
0
2008-09-17T20:48:00.000
9
0.066568
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
87,998
3
3
406
0
python,asp-classic,vbscript
It works out better than you'd believe. Recently I did a large reverse-engineering job on a hideous old collection of C code. Function by function I reallocated the features that were still relevant into classes, wrote unit tests for the classes, and built up what looked like a replacement application. It had some o...
0
0
0
0
2008-09-17T20:48:00.000
9
0.066568
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
If it is decided that our system needs an overhaul, what is the best way to go about it?
87,573
0
3
406
0
python,asp-classic,vbscript
I would not recommend JScript as that is definitely the road less traveled. ASP.NET MVC is rapidly maturing, and I think that you could begin a migration to it, simultaneously ramping up on the ASP.NET MVC framework as its finalization comes through. Another option would be to use something like ASP.NET w/Subsonic or N...
0
0
0
0
2008-09-17T20:48:00.000
9
0
false
87,522
0
0
1
7
We are mainting a web application that is built on Classic ASP using VBScript as the primary language. We are in agreement that our backend (framework if you will) is out dated and doesn't provide us with the proper tools to move forward in a quick manner. We have pretty much embraced the current webMVC pattern that is...
Delete all data for a kind in Google App Engine
8,444,988
1
45
29,003
0
python,google-app-engine
Yes you can: Go to Datastore Admin, and then select the Entitiy type you want to delete and click Delete. Mapreduce will take care of deleting!
0
1
0
0
2008-09-20T17:34:00.000
19
0.010526
false
108,822
0
0
1
3
I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records.
Delete all data for a kind in Google App Engine
2,245,189
0
45
29,003
0
python,google-app-engine
You can use the task queues to delete chunks of say 100 objects. Deleting objects in GAE shows how limited the Admin capabilities are in GAE. You have to work with batches on 1000 entities or less. You can use the bulkloader tool that works with csv's but the documentation does not cover java. I am using GAE Java and m...
0
1
0
0
2008-09-20T17:34:00.000
19
0
false
108,822
0
0
1
3
I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records.
Delete all data for a kind in Google App Engine
109,018
3
45
29,003
0
python,google-app-engine
Unfortunately, there's no way to easily do a bulk delete. Your best bet is to write a script that deletes a reasonable number of entries per invocation, and then call it repeatedly - for example, by having your delete script return a 302 redirect whenever there's more data to delete, then fetching it with "wget --max-r...
0
1
0
0
2008-09-20T17:34:00.000
19
0.031568
false
108,822
0
0
1
3
I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records.
Feedback on using Google App Engine?
2,462,266
6
126
10,614
0
python,django,google-app-engine
This question has been fully answered. Which is good. But one thing perhaps is worth mentioning. The google app engine has a plugin for the eclipse ide which is a joy to work with. If you already do your development with eclipse you are going to be so happy about that. To deploy on the google app engine's web site a...
0
1
0
0
2008-09-21T03:41:00.000
11
1
false
110,186
0
0
1
4
Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this: Has anyone made use of the app engine for anything other than a toy problem? I see some good example a...
Feedback on using Google App Engine?
566,481
36
126
10,614
0
python,django,google-app-engine
I am using GAE to host several high-traffic applications. Like on the order of 50-100 req/sec. It is great, I can't recommend it enough. My previous experience with web development was with Ruby (Rails/Merb). Learning Python was easy. I didn't mess with Django or Pylons or any other framework, just started from the...
0
1
0
0
2008-09-21T03:41:00.000
11
1
false
110,186
0
0
1
4
Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this: Has anyone made use of the app engine for anything other than a toy problem? I see some good example a...
Feedback on using Google App Engine?
110,299
23
126
10,614
0
python,django,google-app-engine
One of the compelling reasons I have come across for using Google App Engine is its integration with Google Apps for your domain. Essentially it allows you to create custom, managed web applications that are restricted to the (controlled) logins of your domain. Most of my experience with this code was building a simpl...
0
1
0
0
2008-09-21T03:41:00.000
11
1
false
110,186
0
0
1
4
Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this: Has anyone made use of the app engine for anything other than a toy problem? I see some good example a...
Feedback on using Google App Engine?
110,225
12
126
10,614
0
python,django,google-app-engine
The "App Engine running Django" idea is a bit misleading. App Engine replaces the entire Django model layer so be prepared to spend some time getting acclimated with App Engine's datastore which requires a different way of modeling and thinking about data.
0
1
0
0
2008-09-21T03:41:00.000
11
1
false
110,186
0
0
1
4
Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this: Has anyone made use of the app engine for anything other than a toy problem? I see some good example a...
Dirty fields in django
1,030,155
-1
36
28,215
0
python,django
for everyone's information, muhuk's solution fails under python2.6 as it raises an exception stating 'object.__ init __()' accepts no argument... edit: ho! apparently it might've been me misusing the the mixin... I didnt pay attention and declared it as the last parent and because of that the call to init ended up in...
0
0
0
0
2008-09-21T11:27:00.000
10
-0.019997
false
110,803
0
0
1
1
In my app i need to save changed values (old and new) when model gets saved. Any examples or working code? I need this for premoderation of content. For example, if user changes something in model, then administrator can see all changes in separate table and then decide to apply them or not.
Where can a save confirmation page be hooked into the Django admin? (similar to delete confirmation)
114,373
2
9
2,618
0
python,django
You could overload the get_form method of your model admin and add an extra checkbox to the generated form that has to be ticket. Alternatively you can override change_view and intercept the request.
0
0
0
0
2008-09-22T11:11:00.000
3
0.132549
false
114,283
0
0
1
2
I want to emulate the delete confirmation page behavior before saving certain models in the admin. In my case if I change one object, certain others should be deleted as they depend upon the object's now out-of-date state. I understand where to implement the actual cascaded updates (inside the parent model's save...
Where can a save confirmation page be hooked into the Django admin? (similar to delete confirmation)
114,348
1
9
2,618
0
python,django
I'm by no means a Django expert, so this answer might misguide you. Start looking somewhere around django.contrib.admin.options.ModelAdmin, especially render_change_form and response_change. I guess you would need to subclass ModelAdmin for your model and provide required behavior around those methods.
0
0
0
0
2008-09-22T11:11:00.000
3
0.066568
false
114,283
0
0
1
2
I want to emulate the delete confirmation page behavior before saving certain models in the admin. In my case if I change one object, certain others should be deleted as they depend upon the object's now out-of-date state. I understand where to implement the actual cascaded updates (inside the parent model's save...
How to get Django AutoFields to start at a higher number
118,331
1
25
14,912
0
python,django,autofield
The auto fields depend, to an extent, on the database driver being used. You'll have to look at the objects actually created for the specific database to see what's happening.
0
0
0
0
2008-09-22T21:37:00.000
8
0.024995
false
117,800
0
0
1
1
For our Django App, we'd like to get an AutoField to start at a number other than 1. There doesn't seem to be an obvious way to do this. Any ideas?
Iron python, beautiful soup, win32 app
118,680
5
21
8,742
0
.net,python,ironpython
If BeautifulSoup doesn't work on IronPython, it's because IronPython doesn't implement the whole Python language (the same way CPython does). BeautifulSoup is pure-python, no C-extensions, so the only problem is the compatibility of IronPython with CPython in terms of Python source code.There shouldn't be one, but if t...
0
0
0
0
2008-09-23T01:37:00.000
9
0.110656
false
118,654
0
0
1
5
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Iron python, beautiful soup, win32 app
119,713
-2
21
8,742
0
.net,python,ironpython
If you have the complete standard library and the real re module (google for IronPython community edition) it might work. But IronPython is an incredible bad python implementation, I wouldn't count on that. Besides, give html5lib a try. That parser parses with the same rules firefox parses documents.
0
0
0
0
2008-09-23T01:37:00.000
9
-0.044415
false
118,654
0
0
1
5
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Iron python, beautiful soup, win32 app
118,713
8
21
8,742
0
.net,python,ironpython
I've tested and used BeautifulSoup with both IPy 1.1 and 2.0 (forget which beta, but this was a few months back). Leave a comment if you are still having trouble and I'll dig out my test code and post it.
0
0
0
0
2008-09-23T01:37:00.000
9
1
false
118,654
0
0
1
5
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Iron python, beautiful soup, win32 app
118,671
0
21
8,742
0
.net,python,ironpython
I haven't tested it, but I'd say it'll most likely work with the latest IPy2. As for distribution, it's very simple. Use the -X:SaveAssemblies option to compile your Python code down to a binary and then ship it with your other DLLs and the IPy dependencies.
0
0
0
0
2008-09-23T01:37:00.000
9
0
false
118,654
0
0
1
5
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Iron python, beautiful soup, win32 app
287,247
1
21
8,742
0
.net,python,ironpython
We are distributing a 40k line IronPython application. We have not been able to compile the whole thing into a single binary distributable. Instead we have been distributing it as a zillion tiny dlls, one for each IronPython module. This works fine though. However, on the newer release, IronPython 2.0, we have a recent...
0
0
0
0
2008-09-23T01:37:00.000
9
0.022219
false
118,654
0
0
1
5
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Is it good to switch from c# to python?
119,386
2
3
5,513
0
c#,python
Never stop learning! That said, how can you compare the two? How good is Python support in .Net? Is there C# support in Google App Engine? It really depends what your target system is. Therefore, the more languages you have the better equipped you will be to tackle different challenges.
0
0
0
0
2008-09-23T04:53:00.000
8
0.049958
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
Is it good to switch from c# to python?
119,208
1
3
5,513
0
c#,python
Both are useful for different purposes. C# is a pretty good all-rounder, python's dynamic nature makes it more suitable for RAD experiences such as site building. I don't think your career will suffer if you were competant in both. To get going with Python consider an IDE with Python support such as Eclipse+PyDev o...
0
0
0
0
2008-09-23T04:53:00.000
8
0.024995
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
Is it good to switch from c# to python?
119,215
1
3
5,513
0
c#,python
What's better is inherently subjective. If you like Python's syntax - learn it. It will probably be harder to find a Python job, C# and .NET in general seem to be more popular, but this may change. I also think it's worth to know at least one scripting language, even if your main job doesn't require it. Python is not a...
0
0
0
0
2008-09-23T04:53:00.000
8
0.024995
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
Is it good to switch from c# to python?
119,224
3
3
5,513
0
c#,python
It can't hurt to learn Python, especially considering some of the heavy weights (Google) are really getting behind it. As for the actual use, it all depends on the application. Use the best tool for the job.
0
0
0
0
2008-09-23T04:53:00.000
8
0.07486
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
Is it good to switch from c# to python?
30,671,567
0
3
5,513
0
c#,python
I have been thinking about this same question myself. I believe however there is still a lot of stuff C# can offer that I want to get good at before I job into Python. Because Python is easier to learn it. One advantage I have found in languages is not the language itself but the materials available to learning them...
0
0
0
0
2008-09-23T04:53:00.000
8
0
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
Is it good to switch from c# to python?
119,205
1
3
5,513
0
c#,python
Depends on what you will use it for. If you're making enterprise Windows forms applications, I don't think switching to Python would be a good idea. Also, it is possible to still use Python on the .NET CLR with IronPython.
0
0
0
0
2008-09-23T04:53:00.000
8
0.024995
false
119,198
1
0
1
6
Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
How do I include a stacktrace in my Django 500.html page?
122,482
11
25
10,099
0
python,django,templates,stack-trace
As @zacherates says, you really don't want to display a stacktrace to your users. The easiest approach to this problem is what Django does by default if you have yourself and your developers listed in the ADMINS setting with email addresses; it sends an email to everyone in that list with the full stack trace (and mor...
0
0
0
0
2008-09-23T14:39:00.000
5
1
false
121,439
0
0
1
2
I'm running Django 1.0 and I'm close to deploying my app. As such, I'll be changing the DEBUG setting to False. With that being said, I'd still like to include the stacktrace on my 500.html page when errors occur. By doing so, users can copy-and-paste the errors and easily email them to the developers. Any thoughts o...
How do I include a stacktrace in my Django 500.html page?
121,487
1
25
10,099
0
python,django,templates,stack-trace
You could call sys.exc_info() in a custom exception handler. But I don't recommend that. Django can send you emails for exceptions.
0
0
0
0
2008-09-23T14:39:00.000
5
0.039979
false
121,439
0
0
1
2
I'm running Django 1.0 and I'm close to deploying my app. As such, I'll be changing the DEBUG setting to False. With that being said, I'd still like to include the stacktrace on my 500.html page when errors occur. By doing so, users can copy-and-paste the errors and easily email them to the developers. Any thoughts o...
Python library for rendering HTML and javascript
126,250
8
18
34,652
0
javascript,python,html
The big complication here is emulating the full browser environment outside of a browser. You can use stand alone javascript interpreters like Rhino and SpiderMonkey to run javascript code but they don't provide a complete browser like environment to full render a web page. If I needed to solve a problem like this I wo...
0
0
1
0
2008-09-24T09:05:00.000
2
1
false
126,131
0
0
1
1
Is there any python module for rendering a HTML page with javascript and get back a DOM object? I want to parse a page which generates almost all of its content using javascript.
Example Facebook Application using TurboGears -- pyFacebook
130,332
1
2
1,667
0
python,facebook,turbogears
pyFacebook is Django-centric because it includes a Django example. I did not intend to irk, but am merely looking for a TurboGears example using pyFacebook.
0
0
0
0
2008-09-24T10:14:00.000
2
0.099668
false
126,356
0
0
1
2
I have a TurboGears application I'd like to run through Facebook, and am looking for an example TurboGears project using pyFacebook or minifb.py. pyFacebook is Django-centric, and I can probably figure it out, but this is, after all, the lazy web.
Example Facebook Application using TurboGears -- pyFacebook
126,399
3
2
1,667
0
python,facebook,turbogears
Why is pyFacebook django centric? Looks like it works perfectly fine with all kinds of WSGI apps or Python applications in general. No need to use Django.
0
0
0
0
2008-09-24T10:14:00.000
2
0.291313
false
126,356
0
0
1
2
I have a TurboGears application I'd like to run through Facebook, and am looking for an example TurboGears project using pyFacebook or minifb.py. pyFacebook is Django-centric, and I can probably figure it out, but this is, after all, the lazy web.
Checking for code changes in all imported python modules
126,843
2
2
304
0
python
As the author of one of the reloader mechanisms (the one in werkzeug) I can tell you that it doesn't work. What all the reloaders do is forking one time and restarting the child process if a monitor thread notices that one module changed on the file system. Inline reload()ing doesn't work because references to the rel...
0
0
0
1
2008-09-24T12:21:00.000
2
1.2
true
126,787
0
0
1
1
Almost every Python web framework has a simple server that runs a wsgi application and automatically reloads the imported modules every time the source gets changed. I know I can look at the code and see how it's done, but that may take some time and I'm asking just out of curiosity. Does anyone have any idea how this ...
What's the best way to upgrade from Django 0.96 to 1.0?
138,666
1
8
896
0
python,django
Only simplest sites are easy to upgrade. Expect real pain if your site happen to be for non-ASCII part of the world (read: anywhere outside USA and UK). The most painful change in Django was switching from bytestrings to unicode objects internally - now you have to find all places where you use bytestrings and change t...
0
0
0
0
2008-09-24T17:19:00.000
5
0.039979
false
128,466
0
0
1
4
Should I try to actually upgrade my existing app, or just rewrite it mostly from scratch, saving what pieces (templates, etc) I can?
What's the best way to upgrade from Django 0.96 to 1.0?
129,187
2
8
896
0
python,django
Just upgrade your app. The switch from 0.96 to 1.0 was huge, but in terms of Backwards Incompatible changes I doubt your app even has 10% of them. I was on trunk before Django 1.0 so I the transition for me was over time but even then the only major things I had to change were newforms, newforms-admin, str() to unicode...
0
0
0
0
2008-09-24T17:19:00.000
5
0.07983
false
128,466
0
0
1
4
Should I try to actually upgrade my existing app, or just rewrite it mostly from scratch, saving what pieces (templates, etc) I can?
What's the best way to upgrade from Django 0.96 to 1.0?
410,942
1
8
896
0
python,django
We upgraded in a multi step process and I'm quite happy with that. The application in Question was about 100.000 LoC and running several core business functions with lot's of interfacing to legacy systems. We worked like that: Update to django 0.97-post unicode merge. Fix all the unicode issues refactor the applicatio...
0
0
0
0
2008-09-24T17:19:00.000
5
0.039979
false
128,466
0
0
1
4
Should I try to actually upgrade my existing app, or just rewrite it mostly from scratch, saving what pieces (templates, etc) I can?
What's the best way to upgrade from Django 0.96 to 1.0?
128,496
7
8
896
0
python,django
Although this depends on what you're doing, most applications should be able to just upgrade and then fix everything that breaks. In my experience, the main things that I've had to fix after an upgrade are Changes to some of the funky stuff with models, such as the syntax for following foreign keys. A small set of te...
0
0
0
0
2008-09-24T17:19:00.000
5
1.2
true
128,466
0
0
1
4
Should I try to actually upgrade my existing app, or just rewrite it mostly from scratch, saving what pieces (templates, etc) I can?
Doing CRUD in Turbogears
158,626
0
3
1,363
0
python,crud,turbogears
After doing some more digging and hacking it turns out to not be terribly hard to drop the Cakewalk interface into an application. It's not pretty without a lot of work, but it works right away.
0
0
0
1
2008-09-24T17:53:00.000
4
0
false
128,689
0
0
1
1
Are there any good packages or methods for doing extensive CRUD (create-retrieve-update-delete) interfaces in the Turbogears framework. The FastDataGrid widget is too much of a black box to be useful and CRUDTemplate looks like more trouble than rolling my own. Ideas? Suggestions?
Style - When to serialize a Django model Instance: signals vs model's save method
136,399
2
1
1,205
0
python,django
If it's core functionality for saving the model you'll want it as part of the save method. However, if you already have a functioning model and you want to extend it for other purposes then signals are your best bet since they allow for properly decoupled modules. A good example might be that you want to add event logg...
0
0
0
0
2008-09-25T03:25:00.000
2
1.2
true
131,327
0
0
1
2
I plan to serialize a Django model to XML when it's saved or updated. (The XML's going to be imported into a flash movie). Is it better to listen for a post_save() or pre_save() signal and then perform the serialization, or to just handle it in the model's save() methon
Style - When to serialize a Django model Instance: signals vs model's save method
131,383
0
1
1,205
0
python,django
Post save. That way the new data (the reason for performing the serialization) is already in the database. It'll make for a much cleaner bit of code that simply takes from the database and doesn't have to worry about adding an extra value. The other way that comes to mind is to maintain the xml file in parallel to the ...
0
0
0
0
2008-09-25T03:25:00.000
2
0
false
131,327
0
0
1
2
I plan to serialize a Django model to XML when it's saved or updated. (The XML's going to be imported into a flash movie). Is it better to listen for a post_save() or pre_save() signal and then perform the serialization, or to just handle it in the model's save() methon
Is Google App Engine a worthy platform for a Lifestreaming app?
139,634
1
7
1,087
0
python,django,google-app-engine,web-applications
If you're app solely relies on Django, then App Engine is a good bet. However, if you ever need to add C-enhanced libraries, you're up a creek. App Engine doesn't support things like PIL or ReportLab, which use C to speed up processing times. I'm only mentioning this because you may want to use C to speed up some of...
0
1
0
0
2008-09-25T18:46:00.000
7
0.028564
false
135,169
0
0
1
4
I'm building a Lifestreaming app that will involve pulling down lots of feeds for lots of users, and performing data-mining, and machine learning algorithms on the results. GAE's load balanced and scalable hosting sounds like a good fit for a system that could eventually be moving around a LOT of data, but it's lack of...