[GH-ISSUE #3088] Upgrade Issue 2.2.0 #1760

Closed
opened 2026-02-27 11:18:58 +03:00 by kerem · 3 comments
Owner

Originally created by @ecolipain on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3088

Discussed in https://github.com/modoboa/modoboa/discussions/3083

Originally posted by ecolipain October 4, 2023

  • Ubuntu 20.04.1
  • Postgres 12.6
  • Python 3.8
  • psycopg 3.1
  • Manual install
  • Upgrade 2.1.2 ---> 2.2.0

Attempting to upgrade to 2.2.0. url.py modified per upgrade instructions ( Modified to: from django.urls import include, path ).

> url.py

from django.urls import include, path
urlpatterns = [
url(r'', include('modoboa.urls')),
]

Receiving error upon migrate command.
NameError: name 'url' is not defined.
Full output of migrate command attached.
migrate.txt

[migrate.txt](https://github.com/modoboa/modoboa/files/12859074/migrate.txt)
Originally created by @ecolipain on GitHub (Oct 10, 2023). Original GitHub issue: https://github.com/modoboa/modoboa/issues/3088 ### Discussed in https://github.com/modoboa/modoboa/discussions/3083 <div type='discussions-op-text'> <sup>Originally posted by **ecolipain** October 4, 2023</sup> - Ubuntu 20.04.1 - Postgres 12.6 - Python 3.8 - psycopg 3.1 - Manual install - Upgrade 2.1.2 ---> 2.2.0 Attempting to upgrade to 2.2.0. url.py modified per upgrade instructions ( Modified to: from django.urls import include, path ). **> url.py** > from django.urls import include, path urlpatterns = [ url(r'', include('modoboa.urls')), ] Receiving error upon migrate command. _NameError: name 'url' is not defined._ Full output of migrate command attached. [migrate.txt](https://github.com/modoboa/modoboa/files/12807190/migrate.txt) </div> [migrate.txt](https://github.com/modoboa/modoboa/files/12859074/migrate.txt)
kerem closed this issue 2026-02-27 11:18:58 +03:00
Author
Owner

@Spitfireap commented on GitHub (Oct 10, 2023):

Hi, it seems you missed the line bellow :
And replace url with path in the file.
Can you try that ? :)

We might need to make it clearer indeed.

<!-- gh-comment-id:1755816041 --> @Spitfireap commented on GitHub (Oct 10, 2023): Hi, it seems you missed the line bellow : ``And replace url with path in the file.`` Can you try that ? :) We might need to make it clearer indeed.
Author
Owner

@ecolipain commented on GitHub (Oct 10, 2023):

Thanks. It jogged my brain.

Altered to:

urls.py

from django.urls import include, path
urlpatterns = [
path(r'',_ include('modoboa.urls')),
]
<!-- gh-comment-id:1755975746 --> @ecolipain commented on GitHub (Oct 10, 2023): Thanks. It jogged my brain. Altered to: > urls.py from django.urls import include, path urlpatterns = [ path(r'',_ include('modoboa.urls')), ]
Author
Owner

@ecolipain commented on GitHub (Oct 10, 2023):

Issue Closed

<!-- gh-comment-id:1755985402 --> @ecolipain commented on GitHub (Oct 10, 2023): Issue Closed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1760
No description provided.