Search:

Type: Posts; User: Drone4four; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.29 seconds.

  1. Importing Postgres Heroku from AWS S3

    I’m learning how to handle Postgres instances by backing them up and restoring them on Heroku for a Django project (a small rudimentary CMS). The amount of data is a few hundred kilobytes because...
  2. Novice question: Limiting number of combo attempts with Fail2ban and 128 bits of ent

    Apps such as Fail2ban and DenyHosts enable unix administrators to limit username/password combo attempts to typically 3 attempts. But why 3? Some admins enable more, like 6 or 8 giving honest users a...
  3. How do I make my Ubuntu 20.04 look like this? iRaspbian

    gnome-look.org has all kinds of GTK3 themes which make nautilus and my title bars look like macOS. But nothing comes as close or as smooth as this nicely themed Raspberry Pi release:...
  4. Database rollback vs. export/import on Heroku

    In the Heroku Postgres Data Safety and Continuous Protection doc, it says:



    I am using the Hobby tier. Does this mean I canít restore a PG backup? Or as an alternative as described in Importing...
  5. Re: Slicing and printing two halfs of an email address (Udemy)

    Thank you @norobro for your suggestion. :D

    I found a guide which shows how to perform this dynamic operation in 5 different programming languages like Java, C#, and Python.

    Python is by far the...
  6. Slicing and printing two halfs of an email address (Udemy)

    I’ve written a script which slices and prints the first half of an email address (before the ‘@’ symbol) and then which also slices and prints the domain name (after the ‘@’ symbol). Here is my basic...
  7. "Travis" guest list name checker (Ziyad Yehia Udemy course)

    I'm taking a Udemy course (not for credit, just for fun) but I would still like to treat this as a homework exercise so for experienced forum members, please do not solve the problem for me. All I am...
  8. Re: TypeError: missing 1 required positional argument (word counter Django app)

    That worked, my friend!!

    https://i.imgur.com/V4a8AN8.jpg

    Thank you for your help and guidance so far, @norobro.

    To answer your questions:

    Short answer::
  9. Re: TypeError: missing 1 required positional argument (word counter Django app)

    I’ve made a few changes based on your suggestions. Here are my latest changes in my GitHub repo. I talk through and discuss my changes below.



    I made this change. My counters function looks...
  10. Re: TypeError: missing 1 required positional argument (word counter Django app)

    Thank you, @norobro! This helps.

    I managed to eliminate the TypeError and 'positional argument' issue. Alls I did was remove my silly global variable declarations and then change my function...
  11. TypeError: missing 1 required positional argument (word counter Django app)

    I’ve got a Python script which counts and prints the number of words in a text file. The script runs beautifully. It takes a public domain book (a text file such as Alice and Wonderland) which then...
  12. Re: AttributeError: module 'posts.views' has no attribute 'home'

    I changed def james(request) to def posts(request). I also then defined both the home and result functions inside posts.views. My server runs successfully now. :cool:
  13. Newb question: Debugging + Linting Python in Visual Studio Code

    Iím closely following along Microsoftís official docs for VSC for Python debugging and linting.

    The Linting guide explain this in the introductory paragraphs:



    When I navigate to Pylint.org...
  14. Re: Django module view has no attribute?

    I rummaged around Google for more clues. Based on a SO question titled “TemplateDoesNotExist at / Django?”. In settings.py where the TEMPLATES variable is declared as a dictionary (the line where...
  15. Re: Django module view has no attribute?

    Thank you, @norobro!

    So the way I was importing my views was the issue! I see that re_path is necessary for invoking regex url patterns. The official Django doc you shared helps.

    My Django...
  16. Django module view has no attribute?

    Iím taking a Udemy course by Nick Walter and rather than copying line by line, Iím trying to branch out and experiment on my own.

    The purpose of the website I am creating is for a small blog,...
  17. AttributeError: module 'posts.views' has no attribute 'home'

    Learning from a Udemy course I am taking by Nick Walter on Django, I am writing my own “Credit Card Redaction” app. The basic functionality is in place. But now I am trying to add a blog post app to...
  18. Re: rsync vs git for Django development? + Project directory location?

    Not a single soul on our beloved internetz would have any interest in seeking support on Google for Linux on a 286. Torvald’s initial kernel was written for his 386. :D My signature is just a...
  19. Re: rsync vs git for Django development? + Project directory location?

    Thank you for your reply. I appreciate it, @TheFu. :KS



    As you suggested, I Googled ‘File system hierarchy standards’. I found the detailed Wikipedia entry. Yes, I’ll follow this hierarchy...
  20. rsync vs git for Django development? + Project directory location?

    I have two questions.

    To manage development of a Django project, when interfacing local changes and mirroring them to my remote webserver, would you people recommend using rsync or git? I have a...
  21. [SOLVED] Re: Django credit card redaction app - - MultiValueDictKeyError

    Hereís the explanation for why this hack works the way it does. Itís simple. If a user lands on the webpage and the ccEntry parameter is not present, it throws MultiValueDictKeyError. So the...
  22. [SOLVED] Re: Django credit card redaction app - - MultiValueDictKeyError

    Howdy @norobro!

    Eureka! This hack works! Thank you very much for taking the time to play around with my project to find a solution. I committed and pushed my changes up to GitHub.

    I know you...
  23. [SOLVED] Django credit card redaction app - - MultiValueDictKeyError

    Iím trying to run a basic Django app which redacts a 16 digit number entered by the user. I had a it running a few minutes ago. Iím not sure what I changed, but now I am getting a...
  24. [server] Re: Configuring user group permissions for Apache

    Thanks for the pointer.



    You should contribute to this or something similar to the StackOverflow question I mentioned earlier titled “Permissions problems with /var/www/html and my own home...
  25. [server] Configuring user group permissions for Apache

    Iím trying to setup the access rights and user and group permissions to secure my Apache webserver.

    In an AskUbuntu question titled, ďPermissions problems with /var/www/html and my own home...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4