Pages

Ads 468x60px

Labels

Showing posts with label Django. Show all posts
Showing posts with label Django. Show all posts

Monday, May 7, 2012

Eclipse - No module named settings.py


ImportError: Could not import settings 'settings.py' (Is it on sys.path?): No module named settings.py
=> Windows > Preferences > Pydev > Interpreter Python  > Libraries > Add path to folder contains settings.py


or sometimes, it's just about your debugging arguments ...





Sunday, May 6, 2012

INSTALLED_APPS django settings.py in Eclipse

for example :



That means :

wiki  folder MUST be the same directory with settings.py


Friday, May 4, 2012

Chay Django Eclipse va PyDev Aptana


  1. Cài đặt Python 2.7
  2. Tải về Eclipse, bản nào cũng được, chọn cái nhiều người tải nhất cho có phong trào :))
  3. Cài đặt Django để tích hợp  vào Python.
  4. Trong Eclipse,  > Help > Install New Software và dựa vào Pydev để cài đặt Aptana (Pydev for Python + Django)
  5. Bước cuối cùng : Tạo project và PHẢI CHỈNH PHẦN DEBUG CONFIGURATION NHƯ SAU 


sau đó chọn Debug thì bạn sẽ được kết quả như khoanh màu vàng phía dưới : Khi đó vào 127.0.0.1:8000 
ta được :



Xem thêm nếu vẫnhttp://vimeo.com/5027645

Thursday, May 3, 2012

"Django not found" Eclipse

Trong luc cau hinh duong dan cho Interpreter :

Windows > Preference > Pydev > Python ... ban phai add Interpreter co chua django

Vi du minh cai dat Python2.6 & 2.7
Khi cai xong django - django se nam trong thu muc Python2.7 => do do phai set duong dan den Python2.7 uu tien hon la Python 2.6

Source : http://stackoverflow.com/questions/3939877/pydev-not-recognizing-python-installation-with-django
 

Sample text

Sample Text

Sample Text

Everyday, I wake up asking my-self : what is the purpose of Life ?

 
Blogger Templates