Deploy Django to Heroku - Push rejected

2016-03-26 Thread Bernardo Garcia


I am trying deploy my Django application to heroku and I get an error when 
I perform git push heroku master command


My structure directory is the following





And the content of requirements/production.txt is:

-r base.txt
gunicorn==19.4.5
dj-database-url==0.4.0


requirements/base.txt have this content:


Django==1.9.2
djangorestframework==3.3.2
Pillow==3.1.1
psycopg2==2.6.1
Markdown==2.6.5
django-filter==0.12.0
django-storages-redux==1.3
django-suit==0.2.16
django-boto==0.3.9
django-multiselectfield==0.1.3


The process that I am perform for deploy to my app to heroku is the 
following and the error is push rejected:


(uleague) ➜  pickapp git:(master) ✗ heroku create fuupbol --buildpack 
heroku/python
Creating fuupbol... done, stack is cedar-14
Setting buildpack to heroku/python... done
https://fuupbol.herokuapp.com/ | https://git.heroku.com/fuupbol.git
(uleague) ➜  pickapp git:(master) ✗ git remote -v
heroku  https://git.heroku.com/fuupbol.git (fetch)
heroku  https://git.heroku.com/fuupbol.git (push)
origin  https://bgarc...@bitbucket.org/bgarcial/pickapp.git (fetch)
origin  https://bgarc...@bitbucket.org/bgarcial/pickapp.git (push)
(uleague) ➜  pickapp git:(master) ✗ git push heroku master
Counting 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: -> Using set buildpack heroku/python
remote: 
remote:  ! Push rejected, failed to detect set buildpack heroku/python
remote: More info: 
https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote: Verifying deploy
remote: 
remote: !   Push rejected to fuupbol.
remote: 
To https://git.heroku.com/fuupbol.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/fuupbol.git'
(uleague) ➜  pickapp git:(master) ✗


I follow the getting started tutorial for deploy in heroku web page 

 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/5d683621-9fb3-4ddc-8f5a-58297350b4f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Deploy Django to Heroku - Push rejected

2016-03-20 Thread Bernardo Garcia
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:




I follow the getting started tutorial for deploy in heroku web page 

 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.
For more options, visit https://groups.google.com/d/optout.


Re: Deploy Django to Heroku - Push rejected

2016-03-19 Thread Andreas Kuhne
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 :

> 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:
>
> 
>
>
> I follow the getting started tutorial for deploy in heroku web page
> 
>  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
> 
> .
> 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.