I'm developing some Django project in Aptana Studio. Today, I was really confused about some debugging problems that occured while I rearranged my project a little.
At first, I was using basic project structure, that is projectFolder/appFolder and here I had basic files as well, that is models.py, urls.py and views.py. I was able to set breakpoints and what's more important they were hitten (yeah, not always it's trivial).
Then I decided to rearrange my project a little bit. I extracted some code from views.py and put it into authorization.py. I also created a new folder views and inserted authorization.py in that folder. All files (including views.py) stayed where they had been before. What really made me tearing my hair out is the fact that now breakpoints in authorization.py were not hitten, while all views from that file were returning correct templates! Breakpoints in views.py worked perfectly fine.
Can anyone explain why this little refactoring caused so much trouble for debugging, and in the same time did not change anything in behaviour of website?
Debugging Django project in Aptana
103 views Asked by MateuszPrzybyla At
0
There are 0 answers
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in DEBUGGING
- How to pass the value of a function of one class to a function of another with the @property decorator
- Visual Studio C++, breakpoints not stopping debugging DLL (GODOT GDExtention)
- Playwright JS: Getting an error when debugging using line numbers
- C++ skips line when promting for user to enter name of person being added to a string array
- Xcode: Can't Attach to process
- unity navmeshsurface prefab not found or whatever
- It seems to be a bug about "base::trace()" or "methods:::.TraceWithMethods()"?
- How to check reference counting issues when doing direct manipulations of CPython objects?
- How to scroll to the bottom of console window in PyCharm2019 automatically?
- need help debugging prolog
- Is there a way to deactivate (but not delete) conditional breakpoints when debugging?
- How can i debug a python exe which is created by using pyinstaller?
- Increment or Decrement volume programmatically on Xiaomi device adjusts it by 10 steps instead of one step
- Checking request JSON with image data
- Why cannot I set font of `xlabel` in `plotmf` in MATLAB?
Related Questions in APTANA
- Eclipse 2021-12 & Aptana Studio 3 Conflict
- Unable to run Aptana Studio 3 on Big Sur
- Unable to install Aptana Studio 3 on Eclipse jee-2020-03
- Aptana Studio not running anymore on Mac
- Multiple Java JDK versions, Aptana Studio 3, Mac OS
- Why do I get a run error from Aptana on Ubuntu 20.04
- Aptana 3 error on Catalina - legacy Java Runtime 6 required
- How do I configure Aptana 3 to run my Rails server in debug mode so it stops on breakpoints?
- How do I set the proper Ruby version for use with my Rails 5 project in Aptana 3?
- How do I configure Aptana 3 IDE to run rspec tests for my Rails project?
- How do I create a Rails run configuration on Aptana Studio 3?
- How do I configure a Rails server in Aptana Studio 3?
- How do I launch my Rails server in debug mode in Aptana Studio 3?
- Aptana Studio 3 won't launch. It's only seeing java 1.6 not 1.8
- Problem with "Syntax error: unexpected token 'let'
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)