1

I've been trying to build my django project using Codeship, as describe here: Codeship Blog.

These are my setup commands:

pip install -r requirements.txt
python manage.py runserver
tar -czf release-backend.tgz .*

My requirements.txt contains Django==1.8.0

However, when run on codeship, build fails giving the error:

python: can't open file 'manage.py': [Errno 2] No such file or directory

Any idea what I'm doing wrong ?

Saurabh Verma
  • 6,328
  • 12
  • 52
  • 84
  • can you list your directory structure? I assume that you did execute "django-admin startproject " and you are running this command from that directory – be_good_do_good Feb 28 '16 at 02:35
  • 'directory structure' - hint was enough :). Stupid mistake - I was not changing my dir to django project. Adding cd before manage.py solved the issue – Saurabh Verma Feb 28 '16 at 02:43

1 Answers1

0

Stupid mistake - I was not changing my dir to django project. Adding cd <path-to-django-project> before manage.py solved the issue.

Final setup commands:

pip install -r requirements.txt
cd <path-to-django-project>
python manage.py runserver --noinput
tar -czf release-backend.tgz .*
Saurabh Verma
  • 6,328
  • 12
  • 52
  • 84