Hi, You haven't created the app in the correct heroku way. You have to have a base django project structure. So the following changes I would suggest:
1. Use the standard layout for settings. So a settings.py file with the PRODUCTION settings in and it will find that file. Also make sure you have staticfiles setup the way heroku wants (see https://devcenter.heroku.com/articles/django-assets). Also install "whitenoise" following the guide on that page. 2. requirements.txt cannot be anywhere else but in the root. That's one of the ways heroku decides to create a python application for your application. 3. Add a runtime.txt file containing the python version you are using for your application (see https://devcenter.heroku.com/articles/python-runtimes) If you follow these steps the application will be found and all your dependencies will be installed and it will work. Regards, Andréas 2016-03-18 21:09 GMT+01:00 Bernardo Garcia <botib...@gmail.com>: > I am trying deploy my Django application to heroku and I get an error when > I perform git push heroku master command > > Do you know the reason which I get this error? > > > uleague) ➜ pickapp git:(master) ✗ git push heroku masterCounting objects: > 195, done.Delta compression using up to 8 threads.Compressing objects: 100% > (92/92), done.Writing objects: 100% (195/195), 516.34 KiB | 0 bytes/s, > done.Total 195 (delta 93), reused 195 (delta 93) > remote: Compressing source files... done. > remote: Building source: > remote: > remote: > remote: ! Push rejected, no Cedar-supported app detected > remote: HINT: This occurs when Heroku cannot detect the buildpack > remote: to use for this application automatically. > remote: See https://devcenter.heroku.com/a... > remote: > remote: Verifying deploy... > remote: > remote: ! Push rejected to shielded-crag-57385. > remote: To https://git.heroku.com/shielde...! [remote rejected] master -> > master (pre-receive hook declined) > error: failed to push some refs to 'https://git.heroku.com/shielde... > (uleague) ➜ pickapp git:(master) ✗ > > I have the following structures directory: > > <http://i.stack.imgur.com/V27Tt.png> > > > I follow the getting started tutorial for deploy in heroku web page > <https://devcenter.heroku.com/articles/getting-started-with-python#prepare-the-app> > and > in their samples, the requirements.txt and the settings.py were as a > isolated files in the root project and not nested under folders as a > settings/ folder or a requirements /folder > > This have related for my error of push rejected ? > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/37fec548-9274-4383-8a72-04f55f9e2ed6%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/37fec548-9274-4383-8a72-04f55f9e2ed6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbkCnLeE8inNrrrSH4rW3pPUKEByi%3DA_Xbmyfkj_3o0W2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.