我正在构建一个电子商务网站,我使访客用户能够将产品添加到他们的购物车中,保存会话中的cart_id,当他们继续结帐时,我重定向他们在结帐视图中登录,如下所示
if not request.user.is_authenticated:
login_url = reverse('accounts:login')
check_out_url = reverse('cart:checkout')
redirect_url = "{}?next={}".format(login_url, check_out_url)
ret
我有一个网页可访问localhost/example与一个公司注册区域的主页。在提交该表单时,页面应该重定向到localhost/register.example,但是我得到了一个错误。
URL: register.example (the localhost is missing?)
*This site can’t be reached. register.example's server DNS address could not be found.*
web.php路由文件
Route::get('/', 'HomepageController@home