Re: __init__.py Won't Upload To Github Respository

2018-09-02 Thread victor jack
Thanks for the link stephen , really much appreciated.

On Sat, Sep 1, 2018 at 7:59 PM Stephen J. Butler 
wrote:

> GitHub has an excellent set of gitignore files. My first commit to a
> project is always one of these:
>
> https://github.com/github/gitignore
>
> In particular:
> https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
>
>
> On Sat, Sep 1, 2018 at 10:52 AM Kasper Laudrup 
> wrote:
>
>> Hi Sandy,
>>
>> On 01/09/2018 17.18, Sandy Leon wrote:
>> > Hello everyone,
>> > I am trying to upload my Django site files to github to then deploy with
>> > Heroku.
>> > I have had no major problems except in trying to upload the folder that
>> > contains my Django site, github gets stuck on trying to upload '
>> > /mysite/polls/__pycache__/__init__.cpython-36.pyc'
>> > Just to be clear, my project is called 'mysite' and the app that I made
>> > following the Django tutorial is called polls.
>> > Thanks you in advance to anyone who can help.
>> >
>>
>> I have no idea why you are not able to upload these files, but you
>> shouldn't be uploading cache files or compiled python modules to you git
>> repository anyway.
>>
>> If you have any of these files in your local git repository, remove them
>> using "git rm".
>>
>> Something like:
>>
>> # find -name __pycache__ -exec git rm -r {} \;
>>
>> And:
>>
>> # find -name *.pyc -exec git rm {} \;
>>
>> Ought to do it.
>>
>> Then commit these changes with something like:
>>
>> # git commit -m "Remove cache and object files from repository"
>>
>> Finally add cache and compiled object files to you .gitignore. Something
>> like:
>>
>> *.pyc
>> __pycache__
>>
>> And try to push your changes again.
>>
>> Be aware that I have not actually tested any of these commands, so
>> please be careful before blindly executing them.
>>
>> Hope that helps a bit.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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/12e119ed-9ffe-d30a-2f88-71f8c70c37dd%40stacktrace.dk
>> .
>> 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/CAD4ANxVoJg7y9%2B6jga5PSpCR%3Dc0hGy6F2DBTqDY%3Di9nO7RVv7g%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+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/CABkm6MU77ZMrspuzQeiCQBFrPTsnbb-Nb9RZ1FxwTDJO9E00KQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Stephen J. Butler
GitHub has an excellent set of gitignore files. My first commit to a
project is always one of these:

https://github.com/github/gitignore

In particular:
https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore


On Sat, Sep 1, 2018 at 10:52 AM Kasper Laudrup 
wrote:

> Hi Sandy,
>
> On 01/09/2018 17.18, Sandy Leon wrote:
> > Hello everyone,
> > I am trying to upload my Django site files to github to then deploy with
> > Heroku.
> > I have had no major problems except in trying to upload the folder that
> > contains my Django site, github gets stuck on trying to upload '
> > /mysite/polls/__pycache__/__init__.cpython-36.pyc'
> > Just to be clear, my project is called 'mysite' and the app that I made
> > following the Django tutorial is called polls.
> > Thanks you in advance to anyone who can help.
> >
>
> I have no idea why you are not able to upload these files, but you
> shouldn't be uploading cache files or compiled python modules to you git
> repository anyway.
>
> If you have any of these files in your local git repository, remove them
> using "git rm".
>
> Something like:
>
> # find -name __pycache__ -exec git rm -r {} \;
>
> And:
>
> # find -name *.pyc -exec git rm {} \;
>
> Ought to do it.
>
> Then commit these changes with something like:
>
> # git commit -m "Remove cache and object files from repository"
>
> Finally add cache and compiled object files to you .gitignore. Something
> like:
>
> *.pyc
> __pycache__
>
> And try to push your changes again.
>
> Be aware that I have not actually tested any of these commands, so
> please be careful before blindly executing them.
>
> Hope that helps a bit.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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/12e119ed-9ffe-d30a-2f88-71f8c70c37dd%40stacktrace.dk
> .
> 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/CAD4ANxVoJg7y9%2B6jga5PSpCR%3Dc0hGy6F2DBTqDY%3Di9nO7RVv7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
I am removing the files as you suggested. I am having a bit of trouble with 
'git commit' at the moment as it keeps crashing haha. I should be able to 
resolve it on my own, thanks again for your help.
On Saturday, September 1, 2018 at 11:18:02 AM UTC-4, Sandy Leon wrote:
>
> Hello everyone,
> I am trying to upload my Django site files to github to then deploy with 
> Heroku.
> I have had no major problems except in trying to upload the folder that 
> contains my Django site, github gets stuck on trying to upload '
> /mysite/polls/__pycache__/__init__.cpython-36.pyc'
> Just to be clear, my project is called 'mysite' and the app that I made 
> following the Django tutorial is called polls.
> Thanks you in advance to anyone who can help.
>

-- 
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/b6b30de8-9eff-40c9-86c8-3ce47b58e24f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Kasper Laudrup

Hi Sandy,

On 01/09/2018 17.18, Sandy Leon wrote:

Hello everyone,
I am trying to upload my Django site files to github to then deploy with
Heroku.
I have had no major problems except in trying to upload the folder that
contains my Django site, github gets stuck on trying to upload '
/mysite/polls/__pycache__/__init__.cpython-36.pyc'
Just to be clear, my project is called 'mysite' and the app that I made
following the Django tutorial is called polls.
Thanks you in advance to anyone who can help.



I have no idea why you are not able to upload these files, but you 
shouldn't be uploading cache files or compiled python modules to you git 
repository anyway.


If you have any of these files in your local git repository, remove them 
using "git rm".


Something like:

# find -name __pycache__ -exec git rm -r {} \;

And:

# find -name *.pyc -exec git rm {} \;

Ought to do it.

Then commit these changes with something like:

# git commit -m "Remove cache and object files from repository"

Finally add cache and compiled object files to you .gitignore. Something 
like:


*.pyc
__pycache__

And try to push your changes again.

Be aware that I have not actually tested any of these commands, so 
please be careful before blindly executing them.


Hope that helps a bit.

Kind regards,

Kasper Laudrup

--
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/12e119ed-9ffe-d30a-2f88-71f8c70c37dd%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.


__init__.py Won't Upload To Github Respository

2018-09-01 Thread Sandy Leon
Hello everyone,
I am trying to upload my Django site files to github to then deploy with 
Heroku.
I have had no major problems except in trying to upload the folder that 
contains my Django site, github gets stuck on trying to upload '
/mysite/polls/__pycache__/__init__.cpython-36.pyc'
Just to be clear, my project is called 'mysite' and the app that I made 
following the Django tutorial is called polls.
Thanks you in advance to anyone who can help.

-- 
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/22b56244-ac3c-4419-b49f-cfc8b638c03e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.