Hello everyone,
I have 2 functions whose aim is to read a pdf file, the first one manages an
uploaded file, the another one fecth a remote one (via an url).
They are quite the same:
def handle_uploaded_file(path,file):
#if os.path.isfile(path + '/' + file.name):
#
wrote:
>>
>>> Here are the ouput during sourcing:
>>>
>>>> [ftg @ localhost] [/var/www/ffablob]
>>>> % source env-p3/bin/activate
>>>> [ftg @ localhost] [/var/www/ffablob]
>>>> % which python
>>>> /usr/bin/python
&g
Here are the ouput during sourcing:
> [ftg @ localhost] [/var/www/ffablob]
> % source env-p3/bin/activate
> [ftg @ localhost] [/var/www/ffablob]
> % which python
> /usr/bin/python
and if I run some of my code that import beautyfulsoup it fails (python
mycode.py), althoug r
/env/bin/python in there:
drwxrwxr-x 3 ftg ftg4096 Jul 6 21:38 .
drwxrwxr-x 6 ftg ftg4096 May 29 20:33 ..
-rw-rw-r-- 1 ftg ftg2114 May 29 20:30 activate
Hello,
I have rsynced a folder on my distant server. Now I try to source my
environment: source ./env/bin/activate and nothing happens.
When type > which python, /usr/bin/python is still printed. What could be the
issue?
Thanks
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for your answer.
The term "picture" was more a metaphor ;)
I am not sure I want to dive into ORM, since I am newbie, maybe I want to code
something more from scratch to understand well program designing.
What would be the best way:
- create 2 classes, one that deals with web scraping, the
Hello,
thanks for this nice answer I didn't see at first (I have parallely asked again
in the list, sorry about the inconvenience).
I will read deeply your proposal I will come bakc with my quesitons if any ;)
Thanks!
June 14 2018 12:37 AM, "Cameron Simpson" wrote:
> On 13Jun2018 15:23, Fabien
Hello everyone,
Here is a small picture of my project.
I'd like to fetch several datas from a website representing races results. Each
line of the result contains rank, runner's name and other attributes of the
runner (like club etc...).
For now I have created 2 classes (Race and Runner).
Method
Hello,
here is my project hierarchy:
myproject
|
|- django-project-name
| |- django-project-name
| | |-urls.py
| | |-views.py
| |- manage.py
|- my-package
Is my projet tree correct? Shouldn't I put my-package into my
django-project-name folder?
Because I am facing some questionning about
Hello,
Using Python 2.7 (will switch to Py3 soon but Before I'd like to understand how
string encoding worked)
Could you please tell me is I understood well what occurs in Python's mind:
in a .py file:
if I write s="héhéhé", if my file is declared as unicode coding, python will
store in memory s=
10 matches
Mail list logo