Tag Info

Hot answers tagged

13

same problem here, just run brew link gettext --force and manage.py compilemessages and everything working fine. you can always brew unlink gettext if you have problems and revert back to previous state


4

I think that installing original tools is much better in terms of unification then rewriting everything. I personally use GOW, it still misses a tiny number of commands but contains all most needed stuff. If you still want to hit batch programming there's a good list of all commands: http://ss64.com/nt/, I think you need forfiles.


4

The installation layout is similar to that of a tar file binary distribution; all MySQL binaries are located in the directory /usr/local/mysql/bin. The MySQL socket file is created as /tmp/mysql.sock by default. See Section 2.7, “Installation Layouts”. From: http://dev.mysql.com/doc/refman/5.0/en/macosx-installation.html It's probably not added ...


4

To tell VIM to use this style evertytime it loads and HTML file put this into your VIMRC: au BufNewFile,BufRead *.html set filetype=htmldjango You can quickly edit your VIMRC file by executing :edit $MYVIMRC.


3

Your Python installation must be configured with --enable-shared when installed. Do be aware that the mod_python project is officially no longer developed or supported. You should really look for alternatives. You certainly shouldn't be using it for new projects. Also be aware that Django has deprecated support for using mod_python and may have even removed ...


3

Did you check if you have pip.exe's parent directory added to your "Environment variables" paths? You can use this page to consult on how to check / change / add / delete environment variable paths. How to set the path and environment variables in Windows Basically what you have to do is Find pip.exe, which is most likely in C:\Python27\Scripts\pip.exe ...


3

There's a slightly more generic version of @Matt Jenkins hashbang (!#) tip you can use to make the script a little more portable. Make sure the first line in the file is: #!/usr/bin/env python ...everything else... That says "look for a program named python by searching my PATH and run the rest of this script with that program". You'll also need to set ...


3

Can you try running ipython directly on the server machine (type ipython). Can you type the letter 'b'? Can you type 'b' on the machine straight in the terminal? This seems more an ipython/linux issue than django. I'm guessing that someone has bound a ipython shortcut to the letter lowercase 'b'. This would be typically be done in '~/.ipython/ipythonrc'. ...


3

fixed for github Libevent First I like to grab libevent via macports. Ignore this if you’ve already done it on your system. sudo ports install libevent Alternatively you could build it yourself or use Homebrew. By the way, both MacPorts and Homebrew do use the newer Libevent2.X.X branch. Install cython pip install cython Install greenlet (optional ...


2

I just follow the same procedure and found nothing wrong ./configure make make check make install and put the geo unzip-ed database in django project's root dir, add the following to settings.py: GEOIP_PATH = "./" here is what I run and got: % python manage.py shell >>> from django.contrib.gis.utils import GeoIP >>> g = GeoIP() ...


2

On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial: http://senko.net/en/django-nginx-gunicorn/


2

Check out https://help.ubuntu.com/community/InstallingSoftware for information on how we install software on Ubuntu. Its a completely different mindset to Windows, you should never really download and install software from random websites. Thousands upon thousands of different packages are already available, prebuilt and tested! You really want to avoid ...


2

Have a look at OSQA, which uses Django and is a nice SO clone. Look at this thread on meta for other alternatives.


2

My problem was that I was adding ;C:\Python\Scripts to the system variables PATH. Adding this to the user variables PATH resolved my issue.


2

Install pip from source. Then try pip install django-request


2

Here's the solution. Use NAT as network for the guest machine. Run Django for 0.0.0.0:8000 type http://10.0.2.2:8000 in IE. Write the protocol (http://) in the address explicitly, otherwise IE interprets 10.0.2.2:8000 as something else but host:port. (Maybe as protocol:host or user:password with no host.) The latter was the last item that I missed in ...


2

I recommend keeping your web server error log and your application error log separate. This neatly separates two layers of your stack, as the web server logs will contain the http-level errors, while the app log will contain exceptions thrown by your code and other custom logging you generate. This post has more on Django error logging, including ...


2

I'm using freeSSHd (http://www.freesshd.com/) to run the SSH server on Windows. After that, it is a SSH connection like any other.


2

It seems like you are using Windows stack. You can solve this by running your editor program as Administrator. Please have a look at following related questions 1. Unable to edit and save a file on remote machine using notepad++ 2. Notepad++ “Check if file is open in another program” No other program open If using Linux, then you can open httpd.conf as ...


1

That's the error message you get when you try to save in Notepad++ when you do not have permission to save it. (In Notepad, the message will be "You do not have permission to save in this location. Contact the administrator to obtain permission." You need to right click the Notepad(++) application link (the desktop icon or start menu item) and choose "Run ...


1

So in order to consistently have MySQL and mysql-python working I do the following: download and install xcode (https://developer.apple.com/xcode/) go into XCode prefs and enable Command Line Tools download and install Mysql Server Community Edition (http://dev.mysql.com/downloads/mysql/5.5.html#downloads) edit my bash profile nano ~/.bash_profile and ...


1

I've just installed MySQL (same version as you've listed) using Homebrew and encountered problems similar to yours. I will note that my copy of Homebrew is probably not healthy; brew doctor continues to give me warnings, especially about some alleged installation of MacPorts or fink, and I plan to re-image this old box from scratch at some point. That said ...


1

If you are pretty confident that this is the correct process (which seems likely) - and as the netstat is not telling you anything useful, then you can use kill -9 5719 The -9 switch sends a SIGKILL rather than the default SIGTERM signal, which will stop the process if it is stoppable. The SIGTERM signal is sent to the process, and effectively asks it ...


1

Nginx is smaller, simpler and more pleasant to configure, and I recommend pursuing it as your sole web server. According to the Nginx WebDAV page, full WebDAV support is now available by combining the 'http_dav_module' with complementary module available that the page links to on GitHub. Documentation is available elsewhere for running Django on Nginx and ...


1

I found a solution by myself: Gunicorn can be controlled by supervisord. An example configuration can be found in the Gunicorn documentation.


1

You don't; you add sudo to the whole thing. sudo sh -c "echo ... > ..."


1

I have found an alternative by adding a line to my tmuxinator config: pre: pkill -f "^python manage.py run_gunicorn" The ^ at the beginning only matches processes which are starting with that command. Without it you would also kill the tmux process as well. This does not solve the problem with remaining background processes, but it kills any old ...


1

You're misunderstanding how the arguments get passed around. When you run python -c "print 'foo'" the shell parses it into python -c print 'foo' so python ends up seeing two arguments. When you run pyt -c "print 'foo'" the line python $@ gets expanded to (the equivalent of) python -c print 'foo', which gets tokenised as python -c print foo i.e. ...


1

First, don't make any changes to the original syntax files! You'll regret this when you update your Vim. If you need to make additions / adaptations, Vim has a mechanism for that. Just put the additional :syntax commands into ~/.vim/after/syntax/htmldjango.vim (note the use of the after directory), and it'll automatically be included by Vim. If you don't ...



Only top voted, non community-wiki answers of a minimum length are eligible