Wednesday, June 26, 2019

Re: Heroku and DJango_Filters

make sure that you use the right package in your requirements.txt

This is the package that everyone uses:

django-filter 
https://pypi.org/project/django-filter/

This is another package with a very similar name

https://pypi.org/project/django-filters/



Em qua, 26 de jun de 2019 às 16:21, Charlotte Wood <charlotte.wood@epiccharterschools.org> escreveu:
I have that.  That's not the problem.  My specific problem is django_filters.  My app worked totally fine until I added these filters.  My questions was:  has anyone had trouble with django-filters and if so, how did you fix it?


Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

Zoom URL: https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site: https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckesson@epiccharterschools.org





On Wed, Jun 26, 2019 at 2:17 PM Fabio C. Barrionuevo da Luz <bnafta@gmail.com> wrote:
Heroku use a "buildpack"  https://devcenter.heroku.com/articles/buildpacks to do automate some things in the deployment.
you can attach one or more buildpacks to your project in heroku
you can also create your own buildpack to customize it.

specifically for Python, the heroku python buildpack (https://github.com/heroku/heroku-buildpack-python) will:

- search a "requirements.txt" file on root directory and install all packages listed on that file.
- search pipenv related files and install all packages listed on that file.

in short, have a requirements.txt file in your root directory





Em qua, 26 de jun de 2019 às 16:07, Charlotte Wood <charlotte.wood@epiccharterschools.org> escreveu:
ok, stupid question....

is there a heroku pip install?

all of my dependencies are installed and listed on my requirements.txt file just like they're supposed to be.

do i pip install somewhere OTHER than my folder in my virtual environment?

i could be totally crazy, but i don't remember every using heroku pip install.....




Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

Zoom URL: https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site: https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckesson@epiccharterschools.org





On Wed, Jun 26, 2019 at 12:07 PM Sithembewena L. Dube <zebra05@gmail.com> wrote:
It sounds like the package django-filters is not installed on your Heroku environment.

Do you have a dependency file suck as a Pipfile or requirements.txt? If you do, you will need to install all dependencies listed there on your Heroku server (at least those you need for production use).

Kind regards,
Lloyd


Sent with Shift

On Wed, Jun 26, 2019 at 6:53 PM Charlotte Wood <charlotte.wood@epiccharterschools.org> wrote:
The only error I keep seeing is "No Module Found" for django-filters

But, I don't understand why it runs perfectly on my local host, every single page, then heroku just hates django filters.  I was hoping someone else had the same issues and remembered.  But, I will follow up with the error logs in a sec.  Thanks ya'll!!



Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

Zoom URL: https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site: https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckesson@epiccharterschools.org





On Wed, Jun 26, 2019 at 11:13 AM Sithembewena L. Dube <zebra05@gmail.com> wrote:
Hi Charlotte,

What sort of error do you see?

Also, have your checked your logs on Heroku?

Lastly, if you have a sandbox on Heroku, you could run the site there in debug mode to get more specific error information.

Kind regards,
Lloyd


Sent with Shift

On Wed, Jun 26, 2019 at 5:59 PM Charlotte Wood <charlotte.wood@epiccharterschools.org> wrote:
I need help.

I've followed the directions to a "T."  

1.  My site works PERFECTLY on my local host in my virtual environment.  NO errors, migrates fine, runs fine and looks beautiful.

2.  BEFORE I added Django-filters to my pages, it worked GREAT on Heroku.

3.  AS SOON as I put the DJango_filters in it, BOOM, Heroku won't run it.  I can find literally no documentation except for the textbook info from DJango, which doesn't troubleshoot at all.

Has anyone had this trouble already?

I have to get this up and running!

ANY suggestions would be helpful.  ANY.....


Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

Zoom URL: https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site: https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckesson@epiccharterschools.org



--
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+unsubscribe@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/CAPZR0N4O0MorKsihVqZzbNmsrkptZgo2tqy_NfGUi%2BnF0_mZ6A%40mail.gmail.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+unsubscribe@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/CAH-SnCC0B1FYJpEtZYo72x-_uTwRMdBojg1mw9bkxw1tdWRe5Q%40mail.gmail.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+unsubscribe@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/CAPZR0N7Okz5pk3aM24pD7kQHri4BZvqripKtimdbs5cHSs9GLg%40mail.gmail.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+unsubscribe@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/CAH-SnCAypOEPdoDpS%3DqXJkH76yE-hKdGSF9nd2gvNHV4xyCyew%40mail.gmail.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+unsubscribe@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/CAPZR0N4dBX_oR8EWh1sG0WBEmE%3DVqnTRLTR1EeRsKnWRpqdCOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Fábio C. Barrionuevo da Luz
Palmas - Tocantins - Brasil - América do Sul


Blog colaborativo sobre Python e tecnologias Relacionadas, mantido totalmente no https://github.com/pythonclub/pythonclub.github.io .

Todos são livres para publicar. É só fazer fork, escrever sua postagem e mandar o pull-request. Leia mais sobre como publicar em README.md e contributing.md.
Regra básica de postagem:
"Você" acha interessante? É útil para "você"? Pode ser utilizado com Python ou é útil para quem usa Python? Está esperando o que? Publica logo, que estou louco para ler...

--
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+unsubscribe@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/CAPVjvMa6K%3Dx%2Bxs%3DKCxZeT8ZEhbZbBQwvLCJvwSU8EiFYaf6HtA%40mail.gmail.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+unsubscribe@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/CAPZR0N5L7%3DOBQnBuZCaiivKCxeAPseFb618AYTppzgWOo6VV9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Fábio C. Barrionuevo da Luz
Palmas - Tocantins - Brasil - América do Sul


Blog colaborativo sobre Python e tecnologias Relacionadas, mantido totalmente no https://github.com/pythonclub/pythonclub.github.io .

Todos são livres para publicar. É só fazer fork, escrever sua postagem e mandar o pull-request. Leia mais sobre como publicar em README.md e contributing.md.
Regra básica de postagem:
"Você" acha interessante? É útil para "você"? Pode ser utilizado com Python ou é útil para quem usa Python? Está esperando o que? Publica logo, que estou louco para ler...

--
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+unsubscribe@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/CAPVjvMbsDMyHhnbCVE15jG5YHTTwRgYpsnb4vHhDTCNfeHN15w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment