django.core.urlresolvers -> django.urls in doc
Change-Id: I75adb9aad6d5deed027625fca8e07b6ed5a1cf42
This commit is contained in:
parent
f29460a8b5
commit
f722d2bb17
@ -68,7 +68,7 @@ calling the nova api to create the snapshot.
|
|||||||
Create the ``forms.py`` file under the ``mypanel`` directory and add the
|
Create the ``forms.py`` file under the ``mypanel`` directory and add the
|
||||||
following::
|
following::
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse
|
from django.urls import reverse
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -105,8 +105,8 @@ Open the ``views.py`` file under the ``mypanel`` directory and add the code
|
|||||||
for the CreateSnapshotView and the necessary imports. The complete
|
for the CreateSnapshotView and the necessary imports. The complete
|
||||||
file should now look something like this::
|
file should now look something like this::
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse
|
from django.urls import reverse
|
||||||
from django.core.urlresolvers import reverse_lazy
|
from django.urls import reverse_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user