Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Django: How to automatically substitute a variable in the admin page at Django 1.11?
Post: RE: Django: How to automatically substitute a vari...

Thnxs for help, but it seems you do not quite understand what is required. Here is an example. location / models.py from django.db import models   class City (models.Model):     name = models.CharFi...
m0ntecr1st0 Web Scraping & Web Development 3 3,309 Jun-29-2019, 12:24 PM
    Thread: Django Python Vscode Error Please Help
Post: RE: Django Python Vscode Error Please Help

from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), ]
m0ntecr1st0 Web Scraping & Web Development 3 2,711 Jun-28-2019, 04:27 PM
    Thread: Django: How to automatically substitute a variable in the admin page at Django 1.11?
Post: Django: How to automatically substitute a variable...

There is a City model. It has a name field. I need to somehow substitute this variable in the admin page in the text field at another models. Suppose need to write the phrase "Your location is Paris...
m0ntecr1st0 Web Scraping & Web Development 3 3,309 Jun-28-2019, 04:16 PM
    Thread: How to add one more similar form by clicking on the current one using JS? Django
Post: How to add one more similar form by clicking on th...

It's simple. There is a form. It is necessary by clicking on it to add one more similar form. More precisely, not even by pressing, but when entering text, if there is such an opportunity in JS. Here...
m0ntecr1st0 Web Scraping & Web Development 0 1,806 Mar-01-2019, 01:02 PM
    Thread: Form add tree comments with mptt
Post: RE: Form add tree comments with mptt

pls, help me :(
m0ntecr1st0 Web Scraping & Web Development 1 2,506 Feb-23-2019, 01:50 PM
    Thread: Form add tree comments with mptt
Post: Form add tree comments with mptt

I'm confused.. Implemented adding comments using mptt, but for now it works only from admin panel. I can not understand what and where to screw in order to make the addition from the site work. That i...
m0ntecr1st0 Web Scraping & Web Development 1 2,506 Feb-22-2019, 11:57 PM
    Thread: RelatedObjectDoesNotExist: User has no profile. Django 1.11
Post: RE: RelatedObjectDoesNotExist: User has no profile...

I decided. Changed profile = user.profile to profile = Profile() profile.user = user
m0ntecr1st0 Web Scraping & Web Development 1 12,570 Feb-21-2019, 01:00 AM
    Thread: RelatedObjectDoesNotExist: User has no profile. Django 1.11
Post: RelatedObjectDoesNotExist: User has no profile. Dj...

After registration I get error. In admin page I see, that user is created, but profile doesn't exist. I see, that user has attribute profile, but when I want to see dir(user.profile), I don't nothing ...
m0ntecr1st0 Web Scraping & Web Development 1 12,570 Feb-20-2019, 05:10 PM
    Thread: How can get url from JavaScript in Selenium (Python 3)?
Post: RE: How can get url from JavaScript in Selenium (P...

(Feb-03-2019, 07:33 PM)snippsat Wrote: Your functions setup in is wrong,just drop functions for now,if you unsure how they work. It's a really messy site to deal with,so not the easiest to start wit...
m0ntecr1st0 Web Scraping & Web Development 3 4,088 Feb-19-2019, 12:35 AM
    Thread: Sorting getting off, when I switch page Django 1.11
Post: Sorting getting off, when I switch page Django 1.1...

Hi. I write the pagination and and sorting. But sorting getting off, when I switch page Django 1.11... forms.py from django import forms class FilterForm(forms.Form): ordering = forms.ChoiceF...
m0ntecr1st0 Web Scraping & Web Development 0 1,977 Feb-12-2019, 06:40 PM
    Thread: How can get url from JavaScript in Selenium (Python 3)?
Post: RE: How can get url from JavaScript in Selenium (P...

(Feb-03-2019, 07:33 PM)snippsat Wrote: Your functions setup in is wrong,just drop functions for now,if you unsure how they work. Thanks for the answer. But I need to get a list of url addresses. I k...
m0ntecr1st0 Web Scraping & Web Development 3 4,088 Feb-03-2019, 08:02 PM
    Thread: How can get url from JavaScript in Selenium (Python 3)?
Post: How can get url from JavaScript in Selenium (Pytho...

I write parser for https://www.oddsportal.com See this url - https://www.oddsportal.com/soccer/englan...d-nNNqedbR I faced with next problem. Need get urls from this block [Image: https://i.stack.im...
m0ntecr1st0 Web Scraping & Web Development 3 4,088 Feb-03-2019, 05:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020