Im sure you already checked but make sure you also have the appropriate
container commands in the .ebextensions folder, under a django.config or
python.config file, what ever  you want to call it should work.  It should
look similar to this:

container_commands:
  01_migrate:
    command: "python manage.py migrate"
    leader_only: true
  02_collectstatic:
    command: "python manage.py collectstatic --noinput"
  03_createsu:
    command: "python manage.py createsuperuser"
    leader_only: true

option_settings:
  "aws:elasticbeanstalk:application:environment":
    DJANGO_SETTINGS_MODULE: "YOURPROJECT.settings"
    PYTHONPATH: "$PYTHONPATH"
  "aws:elasticbeanstalk:container:python":
    WSGIPath: "YOURPROJECT/wsgi.py"
    StaticFiles: "/static/=www/static/"

packages:
  yum:
    postgresql95-devel: []

If you havent already read this one, this article recently helped me set up
an environment:
http://www.1strategy.com/blog/2017/05/23/tutorial-django-elastic-beanstalk/

On Tue, Jun 5, 2018 at 10:19 PM, Yik San Chan <evan.chanyik...@gmail.com>
wrote:

> For requirements.txt, you have to run
>
>> pip freeze > requirements.txt
>
>
> For the second error, you have to run
>
>> eb config
>
> Then change WSGIPath to point to your wsgi.py file.
>
> On Thursday, July 14, 2016 at 4:32:47 AM UTC-7,
> mat...@vogcalgaryappdeveloper.com wrote:
>>
>> Hi, I’ve been directed to you for technical support regarding Django. I
>> can get it working on my own computer running on the provided local server
>> however when I follow any tutorial to host it on elastic beanstalk I get
>> one of two of the following errors:
>>
>>         “ERROR: your requirements.txt is invalid.”
>>
>>         “ERROR: WSGIPath refers to a file that does not exist.”
>>
>>
>>
>> I’ve tried everything I can think of but nothing seems to work.
>>
>> I look forward to hearing back from you and hope that you can help me
>> with this.
>>
>>
>>
>>
>>
>> Matthew Bates
>> VOG Calgary Developer Inc - We Are Mobile Development Professionals
>> Phone: (403) 399-2519 || Email: mat...@vogcalgaryappdeveloper.com
>> 1900 11 Street SE,Suite 150, Calgary, AB T2G 3G2
>> <https://maps.google.com/?q=1900+11+Street+SE,Suite+150,+Calgary,+AB+T2G+3G2&entry=gmail&source=g>
>>
>>
>>
> --
> 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/0cd3efa2-b2ec-4234-b29e-a7dbe31486ae%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/0cd3efa2-b2ec-4234-b29e-a7dbe31486ae%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 

David J. Bednarczyk
Top Dog, Mister Benj
www.misterbenj.com

-- 
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/CAGOje_gADJG2fRuh1E5Ts5L_Le%2BXPtKDK2q39SXyncRrH3400Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to