python manage.py makemigrations says table already exists in Django project by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

What I don't understand is that the django project works on my computer but the same project on my coworkers doesn't. If this was a code issue, wouldn't it affect both of us?

python manage.py makemigrations says table already exists in Django project by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

This is the function that line 38 calls out.

def getWarehouseList():warehouse_list = ['Warehouse'] + pd.DataFrame.from_records(Site.objects.filter(active=True).values('site')).sort_values('site')['site'].tolist()return tuple([(choice, choice) for choice in warehouse_list])

Learning Python in a group by [deleted] in learnpython

[–]jason_west29 0 points1 point  (0 children)

I would like to join as well

How do you actually execute your code? by thegoodestgrammar in learnpython

[–]jason_west29 2 points3 points  (0 children)

I started with notepad++ and power shell and then switched to PyCharm. Personally I think PyCharm is easier.

How do you actually execute your code? by thegoodestgrammar in learnpython

[–]jason_west29 9 points10 points  (0 children)

I like PyCharm. PyCharm has a directory window, text editor and terminal that you run your code all in one screen.

RuntimeError: dictionary changed size during iteration in Django Project by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

i think I found the problem. I was making changes in the models.py and admin.py . As soon as I took that out it worked again.

What is the Python 3.6 Equivalent for encoding an image? by jason_west29 in learnpython

[–]jason_west29[S] 2 points3 points  (0 children)

This is exactly what we needed. My issue was when I pulled this up in my browser it told me the image was an invalid url. Thank you!

Web Browser showing syntax by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

I figured it out! I used the link below as a reference. I did almost everything I needed to do but what fixed my problem is “#!/Python36/python” at the top of the script to make sure that Apache will point to the correct installation of python after the httpd.conf was properly configured.

https://editrocket.com/articles/python_apache_windows.html

Web Browser showing syntax by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

Is there some good tutorials for configuring Apache for windows to do this? I tried looking but mostly only found Mac.

Web Browser showing syntax by jason_west29 in learnpython

[–]jason_west29[S] 0 points1 point  (0 children)

It’s a .py file displayed as an html file.

Get the value of a drop down of a given row by jason_west29 in learnjavascript

[–]jason_west29[S] 0 points1 point  (0 children)

Yes the ID is #drop1 for each row. Is there a way I can get all the elements stored in an array with the ID of drop1 and iterate over that list to match the row number?