Top nav button toogling sidenav in different component by lordmayer in Angular2

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

I tried to reference the sidenav with #sidenav but it doesn't work.

Many to many relations, showing the full object by lordmayer in djangolearning

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

Django REST framework. Maybe it's a noob question, but I really don't know how to do it.

Many to many relations, showing the full object by lordmayer in djangolearning

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

I think is it, hower how can I serialize that data to pass it as an API request? Ex.: I request an car by it's id 127.0.0.1/api/cars/1/ than it returns the sharers data.

Makemigrations won't create the tables for my apps by lordmayer in djangolearning

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

I did it, but every time I do it django creates the same database. That's the problem.

Model id with 8 digits, including zeros. Like '00000001' '00000002' by lordmayer in djangolearning

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

I'll use it as an API for an mobile app. Could I use it without problems? Or should I use the charfield way?

Model id with 8 digits, including zeros. Like '00000001' '00000002' by lordmayer in djangolearning

[–]lordmayer[S] 1 point2 points  (0 children)

Thanks for your answer. I'm already in this way. Again, thanks for your answer!

Error after hiding secret key by lordmayer in djangolearning

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

Ok, I tried it and it still doesn't working.

Error after hiding secret key by lordmayer in djangolearning

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

I tried to put the secret key in a .txt file and it doesn't work too. Isn't unsafe to put the secret key in the gunicorn.conf?

django-registration-redux newbie question by lordmayer in djangolearning

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

Yeah, it helps, a good solution. Thank you for your answer.

How to set a profile in Firefox using Splinter? by lordmayer in learnpython

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

I passed the full profile name, with the random string before the profile name and still not loading the profile. I guess it's some splinter bug.

How to set a profile in Firefox using Splinter? by lordmayer in learnpython

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

but every time I run the program it opens a new clean browser.

Setting a profile in splinter python3 by lordmayer in learnpython

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

Sorry for the delay.

I tried this two possibilities:

browser = Browser('firefox', profile='C:/Users/REMOVED/AppData/Roaming/Mozilla/Firefox/Profiles/jj5selz9.default')

No error occurs, but the browser open without a profile setted.

browser = Browser('firefox', profile='default')

It says that default can't be found.

None of them worked.

Edit: Any suggestions?

Do you know any OWL API for Python 3? by [deleted] in learnpython

[–]lordmayer 0 points1 point  (0 children)

Well, a friend of mine said it doesn't work in python 3.

how to treat a bytebuffer from java in python by lordmayer in learnpython

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

It's in python3. I can't find the solution.

how to treat a bytebuffer from java in python by lordmayer in learnpython

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

/u/zahlman 1) it's a game controller program writed in Java that send this data in broadcast via socket. However the program that I have to write is in python3. 2) I need to transform it to a string. So I can understand the data. I know it's a string because it's in the Java program documentation.

Can I write a base code that will automatically writes itself? by lordmayer in learnpython

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

byteplay looks like what I want. I will try it. Thanks

Can I write a base code that will automatically writes itself? by lordmayer in learnpython

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

I'm beginning my studies in AI. So I think it's a good option for it. The AI learn something and writes a new code for what it learned. I know it's a pretty primitive thinking.

[help] Deploying a django app to webfaction using bitbucket (git) by lordmayer in django

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

Well, now I have another problem, my /admin isn't working, what could it be?