Hi, first email

104 views
Skip to first unread message

Herbert Fortes

unread,
Oct 31, 2017, 9:44:31 AM10/31/17
to django-d...@googlegroups.com
Hi,


I am looking for a way to contributing to Django

project. I am starting with triaging and choose

this ticket[0] that seems simple.


[0] - https://code.djangoproject.com/ticket/28719


First I ran 'tox' but had problems with 'py3':


django.core.exceptions.ImproperlyConfigured: Requested

setting INSTALLED_APPS, but settings are not configured.

You must either define the environment variable

DJANGO_SETTINGS_MODULE or call settings.configure()

before accessing settings.

ERROR: InvocationError: '/tmp/Django-test/django-clone/django/.tox/py3/bin/python runtests.py'


Then I did a 'git clone', and I am trying to run tests

on 'generic_views' but got an Import Error:


ImportError: No module named 'path'


How do I run the tests?




Regards,

Herbert


Tim Graham

unread,
Oct 31, 2017, 11:30:04 AM10/31/17
to Django developers (Contributions to Django itself)

Herbert Fortes

unread,
Oct 31, 2017, 1:28:59 PM10/31/17
to django-d...@googlegroups.com
Em 31-10-2017 13:30, Tim Graham escreveu:
> https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ has the details.
>

Thanks!

Herbert Fortes

unread,
Nov 1, 2017, 12:10:41 PM11/1/17
to django-d...@googlegroups.com
Em 31-10-2017 13:30, Tim Graham escreveu:
> https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/ has the details.
>
> On Tuesday, October 31, 2017 at 9:44:31 AM UTC-4, terberh wrote:
>
> Hi,
>
>
> I am looking for a way to contributing to Django
>
> project. I am starting with triaging and choose
>
> this ticket[0] that seems simple.
>
>
> [0] - https://code.djangoproject.com/ticket/28719 <https://code.djangoproject.com/ticket/28719>
>
>
> First I ran 'tox' but had problems with 'py3':
>
>
> django.core.exceptions.ImproperlyConfigured: Requested
>
> setting INSTALLED_APPS, but settings are not configured.
>
> You must either define the environment variable
>
> DJANGO_SETTINGS_MODULE or call settings.configure()
>
> before accessing settings.
>
> ERROR: InvocationError: '/tmp/Django-test/django-clone/django/.tox/py3/bin/python runtests.py'
>
>
> Then I did a 'git clone', and I am trying to run tests
>
> on 'generic_views' but got an Import Error:
>
>
> ImportError: No module named 'path'
>
>
> How do I run the tests?


It seems that my problem was fixed after installing
python3.5-dev Debian package. And redo the env

__________________________________ summary ___________________________________
py3: commands succeeded
flake8: commands succeeded
docs: commands succeeded
isort: commands succeeded
congratulations :)

Good to see that message. :)

Herbert Fortes

unread,
Nov 1, 2017, 1:27:17 PM11/1/17
to django-d...@googlegroups.com

Hi,

With the dev environmento working as expected I checked
this ticket:
Everything seems good to me but I just leave
a comment instead of set "Ready for checkin"
because it is my first time.

patch ok
test ok
doc ok



Regards,
Herbert
Reply all
Reply to author
Forward
0 new messages